How to run amcl_demo in gazebo+RViz?
Hi ,every one. Now, I want to run amcl_demo in gazebo in my ROS(indigo + ubuntu14.04 + kinect1)
roslaunch turtlebot_gazebo turtlebot_world.launch
roslaunch turtlebot_rviz_launchers view_navigation.launch
roslaunch turtlebot_gazebo amcl_demo.launch map_file:=database/test0.yaml
but after I ran
roslaunch turtlebot_gazebo amcl_demo.launch map_file:=database/test0.yaml
the terminal output some error info:
'[ERROR] [1462761356.977949263]: Map_server could not open database/test0.yaml.
[ INFO] [1462761357.305058954, 74.440000000]: No matching device found.... waiting for devices. Reason: std::string openni2_wrapper::OpenNI2Driver::resolveDeviceURI(const string&) @ /tmp/binarydeb/ros-indigo-openni2-camera- 0.2.5/src/openni2_driver.cpp @ 631 : Invalid device number 1, there are 0 devices connected.
[map_server-10] process has died [pid 11399, exit code 255, cmd /home/zuo/ros/ws/devel/lib/map_server/map_server database/test0.yaml __name:=map_server __log:=/home/zuo/.ros/log/94c0a0f6-158e-11e6-b559-005a39d84f79/map_server-10.log].
log file: /home/zuo/.ros/log/94c0a0f6-158e-11e6-b559-005a39d84f79/map_server-10*.log'
they said "No matching device found",but when I could ran gmapping in gazebo, it's OK!
roslaunch turtlebot_gazebo turtlebot_world.launch
roslaunch turtlebot_rviz_launchers view_navigation.launch
roslaunch turtlebot_gazebo gmapping_demo.launch
So , what's problem with me? Thanks for your help!