hasauino / rrt_exploration_tutorials

This package provides launch files for Gazebo simulation needed to test the rrt_exploration package
http://wiki.ros.org/rrt_exploration/Tutorials
101 stars 39 forks source link

Unable to lunch launching single_simulated_house.launch #10

Closed koshish closed 5 years ago

koshish commented 6 years ago

hercules@hercules:~/robot_operating_system/first_workspace/catkin_ws/src/rrt_exploration_tutorials/launch$ ls includes mutliple_simulated_largeMap.launch single_simulated_house.launch single_simulated_MTR.launch mutliple_simulated_house.launch mutliple_simulated_MTR.launch single_simulated_largeMap.launch

hercules@hercules:~/robot_operating_system/first_workspace/catkin_ws/src$ roslaunch rrt_exploration_tutorials single_simulated_house.launch [single_simulated_house.launch] is neither a launch file in package [rrt_exploration_tutorials] nor is [rrt_exploration_tutorials] a launch file name The traceback for the exception was written to the log file

hasauino commented 6 years ago

I think the problem might be your ROS package path not pointing to your catkin workspace correctly.

CHeck the ROS_PACKAGE_PATH environment variable (used by ROS to locate packages) echo $ROS_PACKAGE_PATH

it should point out to two locations, one of them should be your catkin workspace.

koshish commented 6 years ago

@hasauino

h@hercules:~/robot_operating_system/first_workspace/catkin_ws$ echo $ROS_PACKAGE_PATH /opt/ros/kinetic/share

It shows only one path. What as I missing here?

hasauino commented 6 years ago

You can add your workspace to $ROS_PACKAGE_PATH environment variable by sourcing the setup file inside devel folder of your workspace:

source ~/robot_operating_system/first_workspace/catkin_ws/devel/setup.bash

you may also add this line to the bashrc file so this step happens automatically everytime you open a terminal:

echo "source ~/robot_operating_system/first_workspace/catkin_ws/devel/setup.bash" >> ~/.bashrc

source ~/.bashrc

koshish commented 6 years ago

@hasauino Thank you.

Now it is working.