roscd: No such package/stack
hi, I am new to ROS and following the tutorials. I am having this problem in the tf2 tutorial step 2
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!
Did you source /opt/ros/noetic/setup.bash or ~/Cursos/tutorial_ws/devel/setup.bash after building?
Both of them
It's a bit hard to know exactly what is going on without being on your computer, but I would suggest sourcing only the local one (tutorial_ws) since it should be an overlay of the main one. Sourcing both can make a mess of your environment. If that doesn't work check the build folders to see if the package was actually build with the correct configuration / binary.