simulation.src.simulation_groundtruth.src.groundtruth.object_controller module

Summary

Classes:

ObjectController

ROS node to place obstacles and other objects (e.g.

Reference

class ObjectController(road: simulation.utils.road.road.Road, spawn_model: Callable[[str], None], remove_model: Callable[[str], None], _obstacle_idx: int = 0, _sign_idx: int = 0)[source]

Bases: object

ROS node to place obstacles and other objects (e.g. traffic signs) in Gazebo.

road: simulation.utils.road.road.Road
spawn_model: Callable[[str], None]
remove_model: Callable[[str], None]
_obstacle_idx: int = 0
_sign_idx: int = 0
property obstacle_name
property sign_name
_load_static_obstacles_from_groundtruth() → List[simulation.utils.road.sections.obstacle.StaticObstacle][source]
load(model_names: List[str])[source]

Reload all objects.

update(car_state: gazebo_simulation.msg._CarState.CarState)[source]

Update the object controller.

Use this function to move dynamic obstacles around.

Parameters

car_state – Current car state containing the position of the car.