fmrico / book_ros2

542 stars 112 forks source link

br2_fsm_bumgo_cpp does not make Tiago move #31

Closed npnquang closed 1 month ago

npnquang commented 7 months ago

Important!!!

Type of bug

Issue Description

When launching Tiago sim and br2_fsm_bumpgo_cpp Node, Tiago does not move despite the message is published to the topics scan_raw and nav_vel.

B) Bug Description

I launched the Tiago and BumpGo node but Tiago does not move. I tried to change the RMW_IMPLEMENTATION to rmw_cyclonedds_cpp, echo the messages being published to the topics and even reclone the repo but nothing happens. When launching the Tiago sim, many warnings are displayed but I'm not sure if those warnings affect the nodes. I just started the book so I'm not sure where to debug this. Any help is much appreciated. Thank you.

how to reproduce

Steps to reproduce the behavior:

  1. Execute 'ros2 launch br2_tiago sim.launch.py'
  2. Execute 'ros2 launch br2_fsm_bumpgo_cpp bump_and_go.launch.py'

Expected behavior

Tiago robot moves around.

Screenshots

This is the message published to /scan_raw image This is the message published to /nav_vel image This is the warnings when launching Tiago sim image image image image image

Desktop (please complete the following information):

zarak3268 commented 5 months ago

The bumpgo node publishes to /output_vel, which is mapped to /nav_vel. Changing the mapping from /output_vel -> /nav_vel to /output_vel -> /cmd_vel should fix this. This repo was created 2 years ago so maybe back then the /nav_vel topic was used, but I did not find /nav_vel when I ran ros2 topic list, only /cmd_vel

fmrico commented 5 months ago

:thinking: What branch and ROS Distro are you using?

Cristian-wp commented 4 months ago

Hello Dott. @fmrico , I had the same problem in the master branch with Ubuntu22 and ROS2 Humble. Changing the remapping as @zarak3268 said fix the problem.