ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Why do packages disappear?

asked 2014-10-10 08:24:24 -0500

Shuta gravatar image

I wanted to run the talker program and the listener program. After the talker program was executed, I opened new terminal and typed "rosrun beginner_tutorials listener" to implement the listener program which had made in CMakeLists.txt at the beginner_tutorials package . Then the display said "No such package/stack 'beginner_tutorials' ". I'm sure I had ordered "source ~catkin_ws/devel/setup.bash" before execution of the talker program, but I commanded it one more time, the program normally run. Why did the beginner_tutorials package disappear? What was happened?

edit retag flag offensive close merge delete

Comments

Make sure the path your package resides in is listed in ROS_PACKAGE_PATH environment variable (you can check by like echo $ROS_PACKAGE_PATH).

130s gravatar image 130s  ( 2014-10-10 10:48:52 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-10-10 11:16:34 -0500

ahendrix gravatar image

Every new terminal that you open starts "clean", with only the minimal environment, plus any setup commands that you have in your ~/.bashrc

Any source commands you run in one terminal do not affect other terminals.

If you want all of your terminals to start with your ROS environment set up, you should edit your ~/.bashrc and add the appropriate setup command at the end.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-10-10 08:11:35 -0500

Seen: 616 times

Last updated: Oct 10 '14