Skip to content

Vehicle does not repond to ROS thruster commands until a gazebo topic echo command is issued. #864

@rolker

Description

@rolker

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:

  1. In a terminal, run: ros2 launch vrx_gz competition.launch.py
  2. In a separate terminal, run: ros2 topic pub /wamv/thrusters/right/thrust std_msgs/msg/Float64 "data: 100"
  3. 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.
  4. In yet another terminal, with the ros2 topic pub still sending at 1hz, run: gz topic --echo --topic /wamv/thrusters/right/thrust
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions