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

Revision history [back]

click to hide/show revision 1
initial version

I know its not appropriate to ask question instead of answering the question, however I am facing the exact same issue with you right now. I got two image: (1)ros2 image and (2) autoware image.

The first ros2 image was built under root, nothing special here... and the problem is the second image: as the second image require volume mounting and root user is not ideal, thus I created a user ros with uid=1000 gid=1000 and sudo no-password and user it as a default user in image#2 by USER ros, and ENV /home/ros

When building the autoware project, I need to git clone their repo first before build (git remote is also needed thus no root user is best fit). I run rosdep update and rosdep install without sudo. Til this point, everything is still looking fine...

So at the last part, I have to colcon build and error occur.... it is telling that some basic packages like ament_cmake_coreConfig not found.

I have searched some thread talking about giving write permission but not sure which file should I give. Should I just rebuild the ros without root?

updated cache in /home/ros/.ros/rosdep/sources.cache <-- this is the output of rosdep update