ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2011-04-05 09:36:57 -0500 | commented answer | Error when compiling RGBDSLAM for Kinect I think thats how I originally had it, but it would overwrite the ROS_PACKAGE_PATH variable so I would only ever have the stuff added from .bashrc, or the stuff added from setup.sh, but not both. Or does the $ sign add this path without overwriting the other paths? |
2011-04-03 13:28:23 -0500 | received badge | ● Editor (source) |
2011-04-02 18:24:41 -0500 | answered a question | Error when compiling RGBDSLAM for Kinect Ah I finally got my install working! Turns out I had the same problem as this person: http://answers.ros.org/question/107/missing-dependency-roscpp I am green with Linux so it took me a while as I was missing some of the basics. I will do my best to explain what I did so others have a chance at fixing it. Someone above mentioned .bashrc, but I didn't even know what it is. Well, its in your user folder (/home/taylor in my case) but it is hidden. So open up Nautilus (the file browser), navigate to your user folder, and press Ctrl-h to toggle hidden files if you don't see .bashrc. bashrc runs when you open up a new terminal (I think) and it sets up the environment variables for the terminal session. Anything put in there gets run. Well, the ROS installation wiki says to add "source /opt/ros/diamondback/setup.bash" to the end of your .bashrc file. So, /opt/ros/diamondback/setup.bash is a script that gets run when your terminal opens. It runs a file in that same folder called setup.sh, which sets the ROS environment variables. You can't just set environment variables in your .bashrc file because it will just overwrite some of the stuff that the setup.sh file does. So, navigate to /opt/ros/diamondback/ and open setup.sh for editing. Unfortunately, its set as read only for the user. I'm sure this isn't the right way, but I fixed that by opening a Nautilus browser window as root, by typing in a terminal. With a root Nautilus window, navigate back to /opt/ros/diamondback/ and edit setup.sh to add the new folders that contain the packages you want to use. Specifically, there should be a line: add your user folder to that line like so (where you replace my name with your user name!) I also saw another folder mentioned and decided to add it just to be safe, so my whole line read like this: Now close all your terminal windows and run It should find all your packages and build properly! It did for me and I finally have it running. :) If there are any problems, run To update your packages and try again. |
2011-04-02 18:16:59 -0500 | received badge | ● Supporter (source) |