How to run other launch files with turtlebot's amcl_demo.launch file?
Hi, I'm using ROS kinetic on Ubuntu 16.04.
My current task is tracking people and I'm going to use the proper package (https://github.com/spencer-project/spencer_people_tracking) with the turtlebot's amcl_demo.launch simultaneously.
The fatal problem is that for tracking person, I have to launch a modified launch file (trackingsinglergbdsensor.launch) and it doesn't work when I launch amcldemo.launch.
I think maybe this kind of query is not proper to this ANS page, but I want to get some advice wrt how to launch any other launch files while I launching amcl_demo.launch files.
If anyone who is very familiar with the kinds of turtlebot's amcl files is here, would you please happen to give me a very helpful advice?
[P.S.]
Below is my supposition. When I launched [trackingsinglergbdsensor.launch] with amcldemo.launch simutanesly I got the following error,
[ INFO] [1570456050.161508822]: No matching device found.... waiting for devices. Reason: openni2_wrapper::OpenNI2Device::OpenNI2Device(const string&) @ /tmp/binarydeb/ros-kinetic-openni2-camera-0.4.2/src/openni2_device.cpp @ 75 : Device open failed
Could not open "1d27/0601@1/9": Failed to set USB interface!
To be honest, I used Asus Xtion pro instead of a Kinect sensor. And I guess, maybe amcldemo.launch or something other launch files automatically operated openni driver for Kinect sensor (NOT openni2 driver for Asus which I'm currently using), but [trackingsinglergbdsensor.launch] also launch openni2 driver when it is launched, so eventually the error came from RGB-D sensor driver COLLISON.
[P.S.2]
No, I tried launching openni2 driver right before launch spencer package, right after launched amcl_demo launch file, spencer packages didn't work full.... so sad.. :(
Any way, Thanks in advance :)
Asked by kane_choigo on 2019-10-07 08:28:23 UTC
Comments
Is the launch file
tracking_single_rgbd_sensor.launchrunning without errors at least ?Amcldoesn't launch the openni2 node so it cannot be related.Asked by Delb on 2019-10-08 02:13:40 UTC
Thank you for the quick reply and sorry about my late response. To be honest,
tracking_single_rgbd_sensor.launchcontains openni2 driver's launch command, so when I launched just it only, the packages did work. But launched withAMCLpackage, it didn't work well... I guess, the tf relation between them could be the cause.Asked by kane_choigo on 2019-10-08 07:57:45 UTC
Why do you say it could be tf related ? Does the error point to this ? If the error is always the one you wrote in your post-scriptum 1 then it's only dirvers related. Unless there is also the drivers launched in the amcl file, have you modified it ?
Asked by Delb on 2019-10-08 08:37:38 UTC
Because there were two tf model in rviz when I launched
tracking_single_rgbd_sensor.launchand amcl, so I thought there is no relation between turtlebot and spencer(related totracking_single_rgbd_sensor.launch) and the relationship could betf. But after reading your re-comment, I agree with your opinion. I just modified from<arg name="scan_topic" value="scan" />to<arg name="scan_topic" value="/spencer/sensors/laser_front/echo0" />inamcl_demo.launch. Just so you know,/spencer/sensors/laser_front/echo0is a laser scan topic from hokuyo lidar. But I also failed to use hokuyo lidar's laser scan topic in amcl and the urdf model I modified. It always displays the default turtlebot model and uses rgbd sensor's laser scan topic. Of course, I can just display hokuyo lidar sensor's laser topic..Asked by kane_choigo on 2019-10-08 09:04:51 UTC