carla-simulator / ros-bridge

ROS bridge for CARLA Simulator
MIT License
509 stars 408 forks source link

Rosbag replay error #730

Open j1lee17 opened 1 month ago

j1lee17 commented 1 month ago

Version info

I wanna replay manual control simulation through ros .bag file

However, there are some unknown issues that i cannot address I explain a situation what i executed

  1. I run "ros2 launch carla_ros_bridge carla_ros_bridge_with_example_ego_vehicle.launch.py"

  2. And record CARLA vehicle control cmd "ros2 bag record /carla/ego_vehicle/vehicle_control_cmd_manual /carla/ego_vehicle/vehicle_control_manual_override" to replay. After record through bag file Run the bag file

    • set CARLA env and spawn ego_vehicle "ros2 launch carla_ros_bridge carla_ros_bridge.launch.py" "ros2 launch carla_spawn_objects carla_example_ego_vehicle.launch.py"
    • run the bag file "ros2 bag play "

However, ego_vehicle did not move according to the recorded control command. ('/carla/ego_vehicle/vehicle_control_cmd_manual')

Does anyone who can address this issue?