mastering_ros icon indicating copy to clipboard operation
mastering_ros copied to clipboard

Chapter 3 codes: tf does not exist

Open suvrat13 opened this issue 7 years ago • 9 comments

When I'm trying to visualize the robot state and laser data on Rviz, I get an error in RViz that Fixed frame [map] does not exist. When i run rosrun rqt rqt i see tf being published. I dont know what to do.

suvrat13 avatar Apr 14 '18 22:04 suvrat13

Can you post the issue with a screenshot ?

qboticslabs avatar Apr 15 '18 00:04 qboticslabs

screenshot from 2018-04-18 09 58 33

suvrat13 avatar Apr 18 '18 14:04 suvrat13

Here you can see that the arm does not load with RViz. I observed the same issue with the diff robot. Additionally I encountered the following error when launching seven_dof_arm_bringup_moveit.launch file

[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "gazebo.msgs.Packet" because it is missing required fields: stamp, type, serialized_data Master Unknown message type[] From[37752]

I cant find a fix for these problems.

suvrat13 avatar Apr 18 '18 14:04 suvrat13

Hi

Can you try to launch the following command for Rviz?

roslaunch seven_dof_arm_config demo.launch

qboticslabs avatar Apr 19 '18 01:04 qboticslabs

Well the robot does load with launching with roslaunch seven_dof_arm_config demo.launch. It is when launching through moveit with gazebo that I face this issue.

suvrat13 avatar Apr 19 '18 01:04 suvrat13

It seems like a bug in Gazebo. May I know the version of ROS you are using and Ubuntu version?

Also, are you trying it on real PC or virtual box?

qboticslabs avatar Apr 19 '18 01:04 qboticslabs

I am using ROS-indigo on Ubuntu Trusty 14.04 LTS. I have ubuntu installed in my PC. Its not running on virtual box.

suvrat13 avatar Apr 19 '18 01:04 suvrat13

Did you check whether it is happening for other simulations? We have to find whether this bug is only for this demo.

qboticslabs avatar Apr 19 '18 02:04 qboticslabs

I tried simulating the diff_drive_robot to observe the laser scan in RViz. I had the same problem there. I see that when I try to launch other projects ( different robotic arm) it works fine with demo.launch. Is this what you are asking?

suvrat13 avatar Apr 19 '18 02:04 suvrat13