Rviz running on Gazebo simulation issue. [closed]

asked 2016-11-20 07:45:37 -0500

Ayush Sharma gravatar image

updated 2016-11-22 09:49:17 -0500

I am following the book "Mastering ROS for robotic programming" and is currently working on Gazebo simulation. I have obtained the 3d visualization of the :robotic arm" but when i view the point cloud data of this sensor in RViz using the following command: $ rosrun rviz rviz -f /rgbd_camera_optical_frame

then there is no output obtained. Following the following instructions from the book, "Add a PointCloud2 display type and Topic as /rgbd_camera/depth/points . Set the Color Transformer option as RGB8 ."

I am not able to get any option on the "color transformation tab" and it seems to be disabled.

image description

Also ,when i am using the following commands to view Gazebo 3D vision sensor, • View the RGB raw image: $ rosrun image_view image_view image:=/rgbd_camera/rgb/image_raw • View the IR raw image: $ rosrun image_view image_view image:=/rgbd_camera/ir/image_raw • View the depth image: $ rosrun image_view image_view image:=/rgbd_camera/depth/image_raw, my output is not responding and is having hang problems. NOTE:I am avoiding the hang issue as it might be my system problems.

Thank you in advance. Regards

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2017-12-20 20:17:29.750275


Check the warning in "Global Status/ Fixed Frame" it seems that you do not publish the tranform from rgbd_camera_optical_frame to your base frame, It could explain why you cannot see anything. Are you using a transform publisher ?

Inounx gravatar image Inounx  ( 2016-11-21 02:54:15 -0500 )edit

Sorry but that is not working. This warning remains intact even after running the following code: $ rosrun tf static_transform_publisher 0 0 0 0 0 0 1 map my_frame 10 But i dont feel this is the issue, because the output image given in the book also has the same warning.

Ayush Sharma gravatar image Ayush Sharma  ( 2016-11-21 12:39:25 -0500 )edit