carla-simulator / ros-bridge

ROS bridge for CARLA Simulator
MIT License
523 stars 431 forks source link

[0.9.13] 'object_sensor' publishes objects with 0 width (y-axis size) #650

Open heweweh opened 1 year ago

heweweh commented 1 year ago

Problem

I'm generating training data from carla-simulator and collect samples via carla-ros-bridge. I have received a lot of dimensions: [x : 2.0333524, y : 0. , z : 1.1992844] . it's a fixed size so I think it may be from some configuration like blueprints. I'm not sure about if this is a problem of carla-ros-brige or carla-simulator it self.

Reproduce:

terminal 1 $ carla-simulator/CarlaUE4.sh -benchmark -fps=20
terminal 2 $ ros2 launch carla_ros_bridge carla_ros_bridge.launch.py fixed_delta_seconds:='0.1'
terminal 3 $ ros2 launch carla_spawn_objects carla_spawn_objects.launch.py
terminal 4 $ ros2 launch carla_manual_control carla_manual_control.launch.py
terminal 5 $ carla-simulator/PythonAPI/examples/generate_traffic.py -n 50 -w 15
terminal 6 $ ros2 topic echo /carla/ego_vehicle/objects