[rospack] Error: package 'robot_setup_tf' not found
Hello, I am a beginner at ROS and currently at this tutorial "Setting up your robot using tf"( http://wiki.ros.org/navigation/Tutori... ). I am using ros kinetic. i started out by first configuring my ROS environment like below
printenv | grep ROS
source /opt/ros/kinetic/setup.bash
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/
/catkin_ws$ catkin_make
so after doing "catkin_make" which works. i create the robot_setup_tf package using
catkin_create_pkg robot_setup_tf roscpp tf geometry_msgs
i then create tf_broadcaster & tf listener in the 'src' folder and copy the code given in the template.
gedit src/tf_broadcaster.cpp
gedit src/tf_listener.cpp
catkin_make
source devel/setup.bash
However when i try to run the following command in a new terminal. (Note that i start roscore in a separate terminal & do source devel/setup,bash in my new terminal too).
rosrun robot_setup_tf tf_broadcaster
in get the following error:
[rospack] Error: package 'robot_setup_tf' not found
I have gone through several answers on ros answers. But i am not able to resolve the issue. Can anyone help ? thanks
What does
echo $ROS_PACKAGE_PATH
return? The package robot_setup_tf should be included in this path.in which terminal should i execute the above command you mentioned? in the same terminal where i created all the packages ? if yes then i executed it but it only returns
/home/rahul/catkin_ws/src:/opt/ros/kinetic/share
No, robot_setup_tf is not shown. note that i executed this command while i was in catkin_ws directory
@Rahulwashere in the terminal were you have the error. I see your catkin_ws is in the package path, so this is fine. You should just make sure the "robot_setup_tf" package is in the src directory of your catkin_ws
Hello thank you, i was able to do it, turns out i was setting up my robot_setup_tf package outside src directory, plus i used this command "source ~/catkin_ws/devel/setup.bash