Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ignition::gazebo::systems::MecanumDrive] No cmd_vel gazebo topic is generated by the mecanum drive example #2710

Closed
TZECHIN6 opened this issue Jan 9, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@TZECHIN6
Copy link

TZECHIN6 commented Jan 9, 2025

Environment

  • OS Version: Ubuntu 22.04.5 LTS
  • Source or binary build? binary, Ignition Fortress, Gazebo Sim 6.16.0
  • ROS Version: Humble (ROS2)
thomasluk@inmsm-fractal-1:~$ ign gazebo --version
Gazebo Sim, version 6.16.0
Copyright (C) 2018 Open Source Robotics Foundation.
Released under the Apache 2.0 License.

thomasluk@inmsm-fractal-1:~$ ign gazebo --version
Gazebo Sim, version 6.16.0
Copyright (C) 2018 Open Source Robotics Foundation.
Released under the Apache 2.0 License.

Description

  • Expected behavior:
    What I am trying to do is to create a mecanum robot simulation and integrate with ros2 Nav2 stack. Currently is building a sim robot in gazebo ignition. Reason why I am using new gazebo is that first the old one is EoL, second is that Mecanum Drive is available in the new gazebo, not the old one.
    I have used the example from here. And also refereed to this API call document. I expect it will just work like the turtlebot3 diff drive example, with the "tf", "odom" and most importantly "cmd_vel" available in gazebo side.

  • Actual behavior:
    However, after launching the example sdf, the topic only gives "tf" and "odom", but not the "cmd_vel". Even through the sdf file do not come with topic tag, according to the API, its optional, and by default it will generate a topic with suffix ../../cmd_vel.

Steps to reproduce

  1. create a mecanum_drive.sdf exactly same to the reference example
  2. launch it by this cmd: ign gazebo mecanum_drive.sdf
  3. The simulation started, and check the topic by ign topic -l
  4. No any "cmd_vel" related topic is given by gazebo

Output

Terminal ouput:

thomasluk@inmsm-fractal-1:~$ ign topic -l
/clock
/gazebo/resource_paths
/gui/camera/pose
/model/vehicle_blue/odometry
/model/vehicle_blue/tf
/stats
/world/mecanum_drive/clock
/world/mecanum_drive/dynamic_pose/info
/world/mecanum_drive/pose/info
/world/mecanum_drive/scene/deletion
/world/mecanum_drive/scene/info
/world/mecanum_drive/state
/world/mecanum_drive/stats

Screenshot from 2025-01-09 15-48-49

@TZECHIN6 TZECHIN6 added the bug Something isn't working label Jan 9, 2025
@TZECHIN6 TZECHIN6 changed the title Failed to load system plugin [gz::sim::systems::MecanumDrive] [gz::sim::systems::MecanumDrive] No cmd_vel gazebo topic is generated by the mecanum drive example Jan 9, 2025
@TZECHIN6 TZECHIN6 changed the title [gz::sim::systems::MecanumDrive] No cmd_vel gazebo topic is generated by the mecanum drive example [ignition::gazebo::systems::MecanumDrive] No cmd_vel gazebo topic is generated by the mecanum drive example Jan 9, 2025
@TZECHIN6
Copy link
Author

TZECHIN6 commented Jan 9, 2025

actually the topic can receive cmd... there are also few issue showing this issue (not showing the cmd_vel, but actually working).

Hopefully this will be solved, or mentioned in the document.

@TZECHIN6 TZECHIN6 closed this as completed Jan 9, 2025
@github-project-automation github-project-automation bot moved this from Inbox to Done in Core development Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant