|
CARLA
|
#include "test.h"#include <carla/multigpu/frameDataCodec.h>#include <carla/multigpu/worldState.h>#include <cstring>#include <sstream>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| struct | ActorAppearance |
| An actor's appearance on the primary that a mirror does not get from its spawn attributes or pose. More... | |
| struct | ActorAppearances |
| Frame data packet 30, on change and on every full resync. More... | |
| struct | WorldGlobals |
| Frame data packet 28, on every frame: world-wide state a client can change on the primary that changes what sensors see or measure. More... | |
| struct | WorldObjects |
| Frame data packet 29, on change and on every full resync: map objects whose state is not part of any actor. More... | |
Functions | |
| std::pair< uint16_t, uint16_t > | ComputeMapLayerDiff (uint16_t current, uint16_t desired) |
| The map layers to load and to unload to go from current to desired. | |
| std::pair< std::vector< uint64_t >, std::vector< uint64_t > > | DiffSortedIds (const std::vector< uint64_t > ¤t, const std::vector< uint64_t > &desired) |
| Ids in desired and not in current (first), and the other way round (second). | |
| TEST (MultiGpuWorldState, an_empty_set_is_not_an_absent_one) | |
| TEST (MultiGpuWorldState, an_impossible_object_count_fails) | |
| TEST (MultiGpuWorldState, appearance_round_trip) | |
| TEST (MultiGpuWorldState, diff_sorted_ids) | |
| TEST (MultiGpuWorldState, globals_round_trip) | |
| TEST (MultiGpuWorldState, layer_diff) | |
| TEST (MultiGpuWorldState, objects_round_trip) | |
| TEST (MultiGpuWorldState, objects_with_an_unknown_field_keep_the_set) | |
|
inline |
The map layers to load and to unload to go from current to desired.
Definition at line 230 of file worldState.h.
Referenced by TEST().
|
inline |
Ids in desired and not in current (first), and the other way round (second).
Both inputs sorted.
Definition at line 236 of file worldState.h.
Referenced by TEST().
| TEST | ( | MultiGpuWorldState | , |
| an_empty_set_is_not_an_absent_one | ) |
Definition at line 67 of file test_multigpu_world_state.cpp.
References carla::multigpu::WorldObjects::disabled_environment_objects, and TEST().
| TEST | ( | MultiGpuWorldState | , |
| an_impossible_object_count_fails | ) |
Definition at line 98 of file test_multigpu_world_state.cpp.
References WorldObjects::kDisabledEnvironmentObjects, carla::multigpu::WorldObjects::Read(), TEST(), and carla::multigpu::WriteField().
| TEST | ( | MultiGpuWorldState | , |
| appearance_round_trip | ) |
Definition at line 110 of file test_multigpu_world_state.cpp.
References carla::multigpu::ActorAppearance::actor_id, carla::multigpu::ActorAppearances::actors, carla::multigpu::ActorAppearance::collisions, carla::multigpu::ActorAppearance::hidden, carla::multigpu::ActorAppearance::scale, and TEST().
| TEST | ( | MultiGpuWorldState | , |
| diff_sorted_ids | ) |
Definition at line 136 of file test_multigpu_world_state.cpp.
References DiffSortedIds(), and TEST().
| TEST | ( | MultiGpuWorldState | , |
| globals_round_trip | ) |
Definition at line 40 of file test_multigpu_world_state.cpp.
References carla::multigpu::WorldGlobals::day_night_cycle, carla::multigpu::WorldGlobals::has_day_time_state, carla::multigpu::WorldGlobals::imu_gravity, carla::multigpu::WorldGlobals::last_is_day, carla::multigpu::WorldGlobals::map_layers, carla::multigpu::WorldGlobals::publish_tf, and TEST().
| TEST | ( | MultiGpuWorldState | , |
| layer_diff | ) |
Definition at line 129 of file test_multigpu_world_state.cpp.
References ComputeMapLayerDiff(), and TEST().
| TEST | ( | MultiGpuWorldState | , |
| objects_round_trip | ) |
Definition at line 58 of file test_multigpu_world_state.cpp.
References carla::multigpu::WorldObjects::disabled_environment_objects, and TEST().
| TEST | ( | MultiGpuWorldState | , |
| objects_with_an_unknown_field_keep_the_set | ) |
Definition at line 81 of file test_multigpu_world_state.cpp.
References carla::multigpu::WorldObjects::disabled_environment_objects, WorldObjects::kDisabledEnvironmentObjects, carla::multigpu::WorldObjects::Read(), TEST(), and carla::multigpu::WriteField().