roscd returns: No such package <learning_tf2>
Hello, I am a beginner at ROS and following URDF tutorials, so i am at currently this part http://wiki.ros.org/tf2/Tutorials/Writing%20a%20tf2%20static%20broadcaster%20%28Python%29 (Writing a tf2 static broadcaster (Python))
so i have created the "learning_tf2 package and it exists. but when i write roscdlearningtf2 it returns roscd: No such package/stack 'learning_tf2' . I went through this question https://answers.ros.org/question/65950/roscd-returns-roscd-no-such-packagestack-package_name/ however even after following the steps given in answer i get the same error. SINCE i don't have enough points to upload an image, i would upload the content:
rahul@rahul:~$ source catkin_ws/devel/setup.bash
rahul@rahul:~$ catkincreatepkg learningtf2 tf2 tf2ros roscpp rospy turtlesimCreated file learning_tf2/package.xml
Created file learning_tf2/CMakeLists.txt
Created folder learningtf2/include/learningtf2
Created folder learning_tf2/src
Successfully created files in /home/rahul/learning_tf2. Please adjust the values in package.xml.
rahul@rahul:~$ roscd learningtf2 roscd: No such package/stack 'learningtf2'
Asked by Rahulwashere on 2020-07-16 01:42:46 UTC
Comments
Hi @Rahulwashere,
Remember that, to have rosbash commands available you need to source your enviroment with:
Also take into account that
roscd
command will not find the package if you did notcatkin_make
and re-source the terminal.Asked by Weasfas on 2020-07-17 03:22:29 UTC
HI, i tried it again by deleting the package and redo it, so first i wrote "
source /opt/ros/kinetic/setup.bash
then follow the commandsource catkin_ws/devel/setup.bash
followed by the commands i wrote in the question. however the problem presists. i still get roscd learning_tf2:No such package/stack 'learning_tf2'. i did catkin make too, can you tell me how to resource the terminal, may be i am missing thatAsked by Rahulwashere on 2020-07-17 05:19:00 UTC
Hello, i was finally able to figure it out. thank you!
Asked by Rahulwashere on 2020-07-17 06:02:13 UTC
hi, I am encountering the same problem.
I created a new ws: $ source /opt/ros/noetic/setup.bash $ mkdir -p ~/tutorial_ws/src $ cd ~/tutorial_ws $ catkin_init_workspace src $ catkin_make
Then created the package within the ws: ~/Cursos/tutorial_ws$ catkin_create_pkg learning_tf2 tf2 tf2_ros roscpp rospy turtlesim
redid catkin make and sourced setup.bash
still roscd not finding the package
any help??
Thanks!
Asked by fbliman on 2023-06-14 09:25:12 UTC