Describe the bug
After initial startup using competition.launch.py launch file, the simulated USV does not respond to ROS thruster messages. One way to get the USV to respond to the ROS messages is to issue a gz topic --echo --topic command with the relevant topic.
It seems like the ROS to gazebo bridge needs a bit of prodding to work correctly.
Expected behavior
I expect to see the USV move when a "ros2 topic pub" command is used to set the thruster values, but it stays still most of the time.
To Reproduce
List the steps to reproduce the problem:
- In a terminal, run:
ros2 launch vrx_gz competition.launch.py
- In a separate terminal, run:
ros2 topic pub /wamv/thrusters/right/thrust std_msgs/msg/Float64 "data: 100"
- Observe a message in the first terminal acknowledging that the parameter bridge is passing the message from ROS to Gazebo, yet the USV is not reacting.
- In yet another terminal, with the ros2 topic pub still sending at 1hz, run:
gz topic --echo --topic /wamv/thrusters/right/thrust
- Observe the USV finally start to spin in a slow circle
System Configuration:
- OS: Ubuntu 24.04
- ROS Version: ROS 2 Jazzy
- Gazebo Version:
gz sim --version
Gazebo Sim, version 8.9.0
- Graphics Card: Nvidia RTX 2080
- Are you using VRX or VRX Classic? (The default is VRX). The default jazzy branch from this repo.
Screenshots
N/A
Additional notes
The following shows up in the simulator terminal as soon as the first ROS message is sent.
[parameter_bridge-8] [INFO] [1763046730.454144965] [wamv.ros_gz_bridge]: Passing message from ROS std_msgs/msg/Float64 to Gazebo gz.msgs.Double (showing msg only once per type)
Data streams from the sensors are available as soon as the simulation starts and can be observed in rviz.
Once the thrusters decide to respond, the rest of the simulation seems to be working fine.
Describe the bug
After initial startup using competition.launch.py launch file, the simulated USV does not respond to ROS thruster messages. One way to get the USV to respond to the ROS messages is to issue a gz topic --echo --topic command with the relevant topic.
It seems like the ROS to gazebo bridge needs a bit of prodding to work correctly.
Expected behavior
I expect to see the USV move when a "ros2 topic pub" command is used to set the thruster values, but it stays still most of the time.
To Reproduce
List the steps to reproduce the problem:
ros2 launch vrx_gz competition.launch.pyros2 topic pub /wamv/thrusters/right/thrust std_msgs/msg/Float64 "data: 100"gz topic --echo --topic /wamv/thrusters/right/thrustSystem Configuration:
Screenshots
N/A
Additional notes
The following shows up in the simulator terminal as soon as the first ROS message is sent.
[parameter_bridge-8] [INFO] [1763046730.454144965] [wamv.ros_gz_bridge]: Passing message from ROS std_msgs/msg/Float64 to Gazebo gz.msgs.Double (showing msg only once per type)Data streams from the sensors are available as soon as the simulation starts and can be observed in rviz.
Once the thrusters decide to respond, the rest of the simulation seems to be working fine.