How to run launch file with many packages
Hi,
i wrote launch file which use some different packages and i want to do one file which contains folders with this packages and folder "launch", where this launch file exist (3 folders with packages + 1 folder with launch files). I cant run this launch file cause i got error:
RLException: [allTags.launch] is neither a launch file in package [tag_detector_ros] nor is [tag_detector_ros] a launch file name
The traceback for the exception was written to the log file
I was trying with catkin_make and source devel/setup.bash. Can someone tell me how can I do it correctly?
LaunchFile:
<launch>
<arg name="tag" default="1" />
<group if="$(eval tag == 1)">
<include file="$(find package_name)/launch/launch_file_name.launch"/>
</group>
<group if="$(eval tag == 2)">
<include file="$(find package_name)/launch/launch_file_name.launch"/>
</group>
</launch>
output of rospack find tag_detector_ros:
[rospack] Error: package 'tag_detector_ros' not found
output of find $(rospack find tag_detector_ros) -name *.launch:
[rospack] Error: package 'tag_detector_ros' not found
./src/image_pipeline/stereo_image_proc/launch/stereo_image_proc.launch
./src/image_pipeline/image_proc/launch/image_proc.launch
./src/usb_cam/launch/usb_cam-test.launch
./src/tag_detector_ros/aruco_ros/aruco_ros/launch/aruco_marker_finder_kinect.launch
./src/tag_detector_ros/aruco_ros/aruco_ros/launch/double.launch
./src/tag_detector_ros/aruco_ros/aruco_ros/launch/marker_publisher.launch
./src/tag_detector_ros/apriltags2_ros/apriltags2_ros/launch/continuous_detection.launch
./src/tag_detector_ros/apriltags2_ros/apriltags2_ros/launch/single_image_client.launch
./src/tag_detector_ros/apriltags2_ros/apriltags2_ros/launch/single_image_server.launch
./src/tag_detector_ros/launch/allTagsTogether.launch
./src/tag_detector_ros/launch/allTags.launch
./src/tag_detector_ros/vision_visp/visp_auto_tracker/launch/tracklive_usb.launch
./src/tag_detector_ros/vision_visp/visp_auto_tracker/launch/tracklive_usb_dataMatrix.launch
./src/tag_detector_ros/vision_visp/visp_auto_tracker/launch/tracklive_firewire.launch
./src/tag_detector_ros/vision_visp/visp_auto_tracker/launch/tutorial.launch
./src/tag_detector_ros/vision_visp/visp_camera_calibration/launch/lagadic_grid.launch
./src/tag_detector_ros/vision_visp/visp_tracker/launch/start.launch
./src/tag_detector_ros/vision_visp/visp_tracker/launch/flea2/config.launch
./src/tag_detector_ros/vision_visp/visp_tracker/launch/flea2/camera-nodelet.launch
./src/tag_detector_ros/vision_visp/visp_tracker/launch/hrp2014/config.launch
./src/tag_detector_ros/vision_visp/visp_tracker/launch/hrp2014/camera.launch
./src/tag_detector_ros/vision_visp/visp_tracker/launch/hrp2014/camera-nodelet.launch
./src/tag_detector_ros/vision_visp/visp_tracker/launch/hrp2014/image_pipeline.launch
./src/tag_detector_ros/vision_visp/visp_tracker/launch/tutorial-multi.launch
./src/tag_detector_ros/vision_visp/visp_tracker/launch/tutorial-nodelet.launch
./src/tag_detector_ros/vision_visp/visp_tracker/launch/tutorial.launch
./src/tag_detector_ros/vision_visp/visp_tracker/launch/uvc/config.launch
./src/tag_detector_ros/vision_visp/visp_tracker/launch/uvc/camera-nodelet.launch
WIthout seeing the launchfile? No.
Just a simple launchfile with including others launchfile (from this additional packages). Even if launch file is empty error occurs. Added launchfile code on main post.
Please also show us the exact steps you perform (building workspace, sourcing it and invoking
roslaunch
).catkin_make -> source devel/setup.bash -> roslaunch package_name launch_file_name
That is paraphrasing. Exact commands mean: copy-paste.
catkin_make, source devel/setup.bash, roslaunch tag_detector_ros allTags.launch
What is the output of
rospack find tag_detector_ros
andfind $(rospack find tag_detector_ros) -name *.launch
?Added on main post