ros-simulation / gazebo_ros_pkgs

Wrappers, tools and additional API's for using ROS with Gazebo
http://wiki.ros.org/gazebo_ros_pkgs
760 stars 772 forks source link

ros2 topic echo /tf and ros2 topic echo /odom yield blank #1514

Open AtharvaWani3 opened 10 months ago

AtharvaWani3 commented 10 months ago

I am learning ROS2 and Gazebo. I am using Humble and Gazebo classic 11. I tried running the differential drive example code but it does not resolve the tf in RVIZ. I also tried ros2 topic echo with /tf and /odom which just return blank. What could be the issue? I made sure all the link names are correct and all indentations and tags are closed. `<?xml version="1.0"?>

Gazebo/Blue Gazebo/Grey Gazebo/Grey Gazebo/Grey 50 base_left_wheel_joint base_right_wheel_joint 0.45 0.2 true true true odom odom base_footprint ` ![image](https://github.com/ros-simulation/gazebo_ros_pkgs/assets/143137968/49e02003-8683-418d-a8dd-6ce935160d41) ![image](https://github.com/ros-simulation/gazebo_ros_pkgs/assets/143137968/5c1d5145-99c7-4907-88b6-afb8f6c6e8fb) ![image](https://github.com/ros-simulation/gazebo_ros_pkgs/assets/143137968/4d9a0ae0-271c-4238-a843-482f31f888fa) ![image](https://github.com/ros-simulation/gazebo_ros_pkgs/assets/143137968/f8e403c1-e6c7-4edb-85de-420cf4b20973)