ROS path relocation error
Hello all,
I recently moved my main ros
directory and now I cannot start executables like roslaunch
, rosmake
, or rosdep
. I had made sure to edit my setup.sh
file so I'm very confused about what's gone wrong. Details:
When I first installed Diamondback, roscd
would take me to /opt/ros/diamondback/ros
. Everything worked fine, but I foudn it just a bit annoying so I moved the whole diamondback
directory to /home/khiya/
and changed the environment variables in setup.sh
(located in the diamondback
directory) accordingly. roscd
now takes me straight to /home/khiya/diamondback/ros
, but when I tried running any executables, such as roslaunch
(kinda crucial, I know) I got this error:
:~/diamondback/ros$ roscore
Traceback (most recent call last):
File "/home/khiya/diamondback/ros/bin/roscore", line 34, in <module>
from ros import roslaunch
File "/home/khiya/diamondback/ros/core/roslib/src/ros/__init__.py", line 56, in __getattr__
raise ImportError("Cannot import module '%s': \n%s"%(name, str(e)))
ImportError: Cannot import module 'roslaunch':
Cannot locate installation of package roslaunch:
/home/khiya/diamondback/ros/bin/rospack: error while loading shared libraries:
librospack.so: cannot open shared object file: No such file or directory.
ROS_ROOT[/home/khiya/diamondback/ros]
ROS_PACKAGE_PATH[/home/khiya/sandbox/hrl_rfid:/home/khiya/ros_tutorials:
/home/khiya/diamondback/stacks]
(The last 5 lines are one continuous line, I just chopped it up for easier reading, in case that's important). The error seems to be saying that the directory /home/khiya/diamondback/ros/bin
doesn't contain any of those important executables, but I can cd
there and see that they're there. Do I need to tweak something in librospack.so
?
Thanks very much,
Khiya