ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

how can I see the camera and laser view in gazebo?

asked 2014-10-03 03:03:58 -0600

Robot gravatar image

I have the urdf model of a car. I have attached the laser and camera with it. how cat I see the camera view and the laser data in the gazebo simulator. I know this is a common question. As I am new in ROS I am relly stuck in this.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

answered 2014-10-03 06:59:31 -0600

Airuno2L gravatar image

The most common solution is to view that information outside of Gazebo. Think of Gazebo as the real world, all that you should see in the Gazebo window is what you would see if your robot was in the physical world. I.e. you would see the robot, and the environment, but not sensor data. ROS has other tools for visualizing sensor data.

For example with the camera view, the easiest way is to start the rqt GUI (by entering "rqt" into a terminal) then from the menu select Plugins->Visualization->Image View. Then select your camera feed from the pull down menu and you should see the video stream (you can also view this information from inside RViz, but I find this way to be more intuitive).

For the laser data, use RViz. To start RViz, type "rosrun rviz rviz" in a new terminal, then select Add and add a LaserScan item. Once the LaserScan item is added to the left pane, expand it and enter the topic name that Gazebo is publishing the lidar data to in the Topic field. You might have to mess with the frames a bit depending on how you have things setup, the userguide is helpful for that type of stuff.

edit flag offensive delete link more

Comments

thanks a lot.. it is working..

Robot gravatar image Robot  ( 2014-10-03 08:22:59 -0600 )edit
2

Nice, glad to help. If that answers everything please mark it as the answer using the check mark to close it out.

Airuno2L gravatar image Airuno2L  ( 2014-10-03 09:21:14 -0600 )edit

I do not get you.. What should I have to do.. Thanks again...

Robot gravatar image Robot  ( 2014-10-03 10:27:49 -0600 )edit

Next to my answer there is a number that cooresponds to how many votes it has received (currently 1) Right under that, there is a check mark in a circle that you can click to indicate my answer as the accepted answer. This helps the site maintain how many questions have been answered.

Airuno2L gravatar image Airuno2L  ( 2014-10-03 11:38:28 -0600 )edit

Question Tools

3 followers

Stats

Asked: 2014-10-03 03:03:58 -0600

Seen: 9,864 times

Last updated: Oct 03 '14