Closed kevinpretell closed 7 months ago
@kevinpretell I am facing the exact same problem. Were you able to fix the issue and get the demo running ? In my case I am using ROS2 Galactic.
Thank you,
Kishor
@SteveMacenski Sorry to bother you, can you please confirm if the tutorial works correctly on ROS2 Humble or has it been tested without errors? Maybe we need to set up some configuration files first?
Thank you so much for a job well done!
I am facing the same problem. There seems to be some transformation missing?
@kevinpretell @derDieDasJojo I am not sure if this helps. I upgraded my Ubuntu to 22.04, and installed ROS2 Iron. Now things are working fine. And I am able to run the examples without any issues.
Thank you,
KK
@kk2491 thats intresting. I tried to do the same by uninstaling ros2 humble and installing ros2 iron on my ubuntu 22.04. But I still get the same error messages and no map showing:
mapviz-1] [WARN] [1702569695.251569361] [mapviz]: [transform_manager]: Local XY frame has not been initialized.
[mapviz-1] [WARN] [1702569695.252055476] [swri_transform_util::Transformer]: Wgs84Transformer not initialized
[mapviz-1] [WARN] [1702569695.252078702] [swri_transform_util::Transformer]: Wgs84Transformer not initialized
[mapviz-1] [WARN] [1702569695.252112022] [mapviz]: [transform_manager]: No transformer from '' to 'tf'. If '' is a /tf frame, it may not have been broadcast recently.
[mapviz-1] [ERROR] [1702569695.354455995] [mapviz]: [transform_manager]: Could not find a connection between 'map' and 'base_link' because they are not part of the same tree.Tf has two or more unconnected trees.
[mapviz-1] [WARN] [1702569695.354612630] [mapviz]: [transform_manager]: Failed to get tf transform ('base_link' to 'map'). Both frames exist in tf.
I am running the following 3 launch-files:
ros2 launch nav2_gps_waypoint_follower_demo gazebo_gps_world.launch.py
ros2 launch nav2_gps_waypoint_follower_demo dual_ekf_navsat.launch.py
ros2 launch nav2_gps_waypoint_follower_demo mapviz.launch.py
One thing that I have noticed is that gazebo is not showing my robot. I am not sure why.
@kk2491 are you doing anything different here?
@derDieDasJojo I just tried again (used the above 3 launch files you have given), I am able to run, and not seeing any errors.
[mapviz-1] [WARN] [1702570871.783404222] [swri_transform_util::Transformer]: Wgs84Transformer not initialized
[mapviz-1] [WARN] [1702570871.783424574] [mapviz]: [transform_manager]: No transformer from '' to 'tf'. If '' is a /tf frame, it may not have been broadcast recently.
[initialize_origin.py-2] [INFO] [1702570871.796950703] [initialize_origin]: Got NavSat message.
[initialize_origin.py-2] [INFO] [1702570871.797563044] [initialize_origin]: Origin from 'navsat' source set to 38.161456507517954, -122.45460671020092, 488.33200728707016
[initialize_origin.py-2] [INFO] [1702570871.799589770] [initialize_origin]: Successfully set origin; unsubscribing.
[mapviz-1] [INFO] [1702570871.804339842] [mapviz]: OK
[mapviz-1] [WARN] [1702570871.806684077] [mapviz]: [transform_manager]: No transformer from '' to 'tf'. If '' is a /tf frame, it may not have been broadcast recently.
[mapviz-1] [INFO] [1702570871.806887688] [mapviz]: OK
[mapviz-1] [ERROR] [1702570871.809344947] [mapviz]: NETWORK ERROR: Protocol "" is unknown
[mapviz-1] [WARN] [1702570871.824255350] [mapviz]: [transform_manager]: No transformer from '' to 'tf'. If '' is a /tf frame, it may not have been broadcast recently.
[mapviz-1] [WARN] [1702570871.844636430] [mapviz]: [transform_manager]: No transformer from '' to 'tf'. If '' is a /tf frame, it may not have been broadcast recently.
[mapviz-1] [INFO] [1702570871.864651834] [mapviz]: OK
[mapviz-1] [INFO] [1702570874.432322964] [mapviz]: API Key Set.
[mapviz-1] [INFO] [1702570874.444219597] [mapviz]: OK
I hope the humble was uninstalled cleanly. After installing Iron I had few issues, I removed everything and reinstalled the iron again and it started working.
Thank you,
KK
@kk2491 so you are using humble again and it works? Have you installed any additional packages?
How did you clone and build the project? can you show me the commands you ran to import and build? maybe that's where I'm wrong
thanks
@kevinpretell sorry, I had typo. For me it didn't work in humble, and it works fine in iron. Even in iron I ran into few issues, so uninstalled and reinstalled iron again.
Thank you, KK
Now I also managed to run it in iron.
First I had to install the turtulebot3 packged so gazebo can simulate them: sudo apt install ros-iron-turtlebot3-*
Then I had to start it in the opposite direction:
1) ros2 launch nav2_gps_waypoint_follower_demo mapviz.launch.py
then add the Bing Key and click Save
2) ros2 launch nav2_gps_waypoint_follower_demo dual_ekf_navsat.launch.py
3) ros2 launch nav2_gps_waypoint_follower_demo gazebo_gps_world.launch.py
Maybe mapviz is expecting tranform messages that are sent only at the beginning by gazebo? Not sure just guessing.
You don't have execute in the reverse order, moreover I don't think the order matters. Probably it is due to incomplete removal of previous Ros version.
Anyways I'm happy that you got that running.
Thank you.
Hi @derDieDasJojo @kk2491 @kevinpretell I am facing a similar issue on my attempt, can you please assist me?
The issue is below:
Was someone able to run this tutorial successfully in ROS2 Galactic?
Hello, i'm using humble and i'm still facing this issue. Seems like my Turtlebot is not showing up as well, and im getting a similar output as follows:
``[mapviz-1] [WARN] [1705901351.835835784] [mapviz]: [transform_manager]: No transformer from '' to 'tf'. If '' is a /tf frame, it may not have been broadcast recently. [mapviz-1] [WARN] [1705901351.866320583] [swri_transform_util::Transformer]: Wgs84Transformer not initialized [mapviz-1] [WARN] [1705901351.866380780] [swri_transform_util::Transformer]: Wgs84Transformer not initialized [mapviz-1] [WARN] [1705901351.866419907] [mapviz]: [transform_manager]: No transformer from '' to 'tf'. If '' is a /tf frame, it may not have been broadcast recently. [mapviz-1] [WARN] [1705901351.866725651] [swri_transform_util::Transformer]: Wgs84Transformer not initialized [mapviz-1] [WARN] [1705901351.866732839] [swri_transform_util::Transformer]: Wgs84Transformer not initialized [mapviz-1] [WARN] [1705901351.866741152] [mapviz]: [transform_manager]: No transformer from '' to 'tf'. If '' is a /tf frame, it may not have been broadcast recently. [mapviz-1] [WARN] [1705901351.882790213] [swri_transform_util::Transformer]: Wgs84Transformer not initialized [mapviz-1] [WARN] [1705901351.882845552] [swri_transform_util::Transformer]: Wgs84Transformer not initialized [mapviz-1] [WARN] [1705901351.882877616] [mapviz]: [transform_manager]: No transformer from '' to 'tf'. If '' is a /tf frame, it may not have been broadcast recently. [mapviz-1] [ERROR] [1705901351.987293235] [mapviz]: [transform_manager]: Could not find a connection between 'map' and 'base_link' because they are not part of the same tree.Tf has two or more unconnected trees. [mapviz-1] [WARN] [1705901351.987385667] [mapviz]: [transform_manager]: Failed to get tf transform ('base_link' to 'map'). Both frames exist in tf.
[mapviz-1] [WARN] [1705901351.989952208] [mapviz]: [transform_manager]: No transformer from '' to 'tf'. If '' is a /tf frame, it may not have been broadcast recently.
[mapviz-1] [ERROR] [1705901352.000022167] [mapviz]: NETWORK ERROR: Protocol "" is unknown
@marcusvinicius178 I too had similar issues, and not able to get the system up and running in Galactic. My suggestion would be to try with ROS2 Iron, because I really don't think Galactic would work after all.
Thank you,
KK
Hi @RyuseiiSama it just works in ROS2 IRON OR ROLLING (ONLY UBUNTU 22.04).
In addition you need to launch the files in the following order to make it work:
Why does the order matter for this? Curious, as the tutorial on navigation the instructions are in the opposite order.
Hi, I'm starting to use nav2 and I was following your tutorial: https://navigation.ros.org/tutorials/docs/navigation2_with_gps.html#
at the "Localization Testing" step when I run the second command ros2 launch nav2_gps_waypoint_follower_demo mapviz.launch.py
I get the following error:
Below is the complete error
How do I fix it? My version of ros2 is humble, i installed mapviz and robot localization as mentioned at the beginning after i copied the folder into my workspace and did build.