-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment Setup #33
Comments
I enabled
Between the two
Now, when I re-source .bashrc after I'm in the container, I get the same list of So why isn't the |
I think this might be a 🐔 🥚 problem. I'm still seeing that I need to "double source" things. Here's what I think is happening. I source my built workspace and that then 1) adds the ROS stuff, 2) adds the Orocos stuff (which doesn't see my workspace), and 3) adds my workspace stuff. Then I source my built workspace a second time and then it 1) adds the ROS stuff, 2) adds the Orocos stuff (which now does see my workspace and adds it to the RTT var), and 3) adds my workspace stuff. So maybe the solution is to make my custom workspace update the RTT var itself? |
I'm struggling to get a Dockerfile set up with my custom workspace code built and colcon environment automatically configured for a user to "enter" without needing any extra
source
calls.In my Dockerfile, I have the following (psuedo) sections:
I have a layer that installs
ros-foxy-ros-core=0.9.2-1*
in much the same way the official ROS Docker images do.From (1), I have a layer that sources the ROS workspace and then builds both
orocos-toolchain
andrtt_ros2_integration
from source, in much the same way that the official Orocos Docker images do. The goods of that layer include:echo
s from it in testing), that includes:(and I get
SOURCED
printed to the screen when Idocker run
anddocker exec
).The trouble is... when I do
docker run
ordocker exec
into my image/container, I notice that theRTT_COMPONENT_PATH
is incomplete (and my components don't execute correctly).When I try to run something, I get an error like this:
If I then source my environment again, my
env
changes and executable runs.I've also noticed that if I source the
/opt/orocos/foxy/setup.bash
environment, my custom workspace is added... that can't be right...What am I doing wrong here? Am I not "chaining" my colcon workspaces correctly? Do I need to source my workspace twice? Something else look obviously wrong?
The text was updated successfully, but these errors were encountered: