Problem
I'm generating training data from carla-simulator and collect samples via carla-ros-bridge.
I found that carla-ros-bridge is only giving car and pedestrian, without bike, motorcycle, truck, etc.
I noticed that in carla-ros-bridge/src/carla_ros_bridge/vehicle.py:42 Vehicle.__init__()
self.classification = Object.CLASSIFICATION_CAR
if 'object_type' in carla_actor.attributes:
if carla_actor.attributes['object_type'] == 'car':
self.classification = Object.CLASSIFICATION_CAR
elif carla_actor.attributes['object_type'] == 'bike':
self.classification = Object.CLASSIFICATION_BIKE
elif carla_actor.attributes['object_type'] == 'motorcycle':
self.classification = Object.CLASSIFICATION_MOTORCYCLE
elif carla_actor.attributes['object_type'] == 'truck':
self.classification = Object.CLASSIFICATION_TRUCK
elif carla_actor.attributes['object_type'] == 'other':
self.classification = Object.CLASSIFICATION_OTHER_VEHICLE
ros-bridge propose to get object_type from actors to determinate the actual type of vehicle,
but actually the carla_actor.attributes['object_type'] will be always empty str '' in my trace.
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 $ carla-simulator/PythonAPI/examples/generate_traffic.py -n 50 -w 15
Problem
I'm generating training data from carla-simulator and collect samples via carla-ros-bridge.
I found that carla-ros-bridge is only giving
carandpedestrian, withoutbike,motorcycle,truck, etc.I noticed that in
carla-ros-bridge/src/carla_ros_bridge/vehicle.py:42 Vehicle.__init__()ros-bridge propose to get
object_typefrom actors to determinate the actual type ofvehicle,but actually the
carla_actor.attributes['object_type']will be always empty str''in my trace.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 $ carla-simulator/PythonAPI/examples/generate_traffic.py -n 50 -w 15