Ask Your Question
0

Problem launching Gmapping with Kinect on Turtlebot

asked 2016-03-22 12:31:19 -0500

niraj007 gravatar image

updated 2016-03-23 04:06:29 -0500

Hello, I am novice in ROS. I am trying to use Kinect 1517 in Turtlebot 2 for map building. I follow the tutorial on http://wiki.ros.org/turtlebot_navigat... . I use source installation of ROS indigo on Ubuntu 14.04 on Asus X200CA Notebook PC ( http://wiki.ros.org/turtlebot/Tutoria... ). I connect kinect on USB 3.0 port. Here is the step I follow for SLAM;

On turtlebot -- roslaunch turtlebot_bringup minimal.launch then, roslaunch turtlebot_navigation gmapping_demo.launch;

Then, I receive Warning message like tf error, before getting info like starting a 3s RGB and Depth stream flush. Then I receive warning like could not find any compatible depth output mode and camera calibration file not found...

If I open RVIZ on workstation(roslaunch turtlebot_rviz_launchers view_navigation.launch) I get many red sign with status error on RobotModel, Map, global map, local map--these option .

Then I follow this tutorial ( http://wiki.ros.org/turtlebot/Tutoria... ) and bringup the turtlebot using

roslaunch turtlebot_bringup 3dsensor.launch

I can see there are message on topic /camera/rgb/image_color in the form of numbers like 185, 178, 175, 179...

But RViz launcher still have red alert sign.

I don't know what happen. Please help...

Here is the detail of gmapping demo launch

process[move_base-18]: started with pid [10076]

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-03-22 21:30:37 -0500

Steven_Daniluk gravatar image

I believe your problem is caused by launching roslaunch turtlebot_navigation gmapping_demo.launch on your workstation, when it should be launched on the Turtlebot laptop instead.

The reason being that gmapping_demo.launch not only starts the gmapping node, but also starts the freenect node for the kinect sensor, and since the kinect sensor is not connected to your workstation the node won't be able to recieve any data from the sensor. If there isn't any data from the sensor then gmapping won't publish any transform information for the map frames.

Try launching these on the turtlebot:

roslaunch turtlebot_bringup minimal.launch

roslaunch turtlebot_navigation gmapping_demo.launch

Then this on the workstation:

roslaunch turtlebot_rviz_launchers view_navigation.launch

in the event that everything works, but the RobotModel still has a red error sign, try closing and reopening RVIZ. Sometimes it doesn't properly reload the RobotModel if you launch it before the model is actually being published (at least for me).

If you still have issues maybe post the terminal outputs from these commands. The Turtlebot launch files should work without any problems, so it must be either which machine you are launching them from, or something to do with your network setup.

edit flag offensive delete link more

Comments

Thanks for the solution Stevan_Daniluk. It works perfectly. I have to wait for all the nodes to initiate then only launch the rviz launchers.

niraj007 gravatar image niraj007  ( 2016-03-23 04:08:14 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-03-22 12:24:30 -0500

Seen: 894 times

Last updated: Mar 23 '16