Skip to content

Commit

Permalink
Fix rosdep permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsowa committed May 7, 2021
1 parent 1d641fb commit 0e0d51b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
10 changes: 0 additions & 10 deletions stage3/03-leo-ros/02-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,3 @@

mkdir -p "${ROOTFS_DIR}/etc/ros/catkin_ws"
install -m 644 files/leo-erc.repos "${ROOTFS_DIR}/etc/ros/catkin_ws/"

on_chroot <<EOF
cd /etc/ros/catkin_ws
vcs import < leo-erc.repos
rosdep update
rosdep fix-permissions
rosdep install --from-paths src -iy
catkin config --extend /opt/ros/melodic --install -i /opt/ros/leo
catkin build
EOF
8 changes: 8 additions & 0 deletions stage3/03-leo-ros/03-run-chroot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export ROS_HOME=/var/ros
cd /etc/ros/catkin_ws
vcs import < leo-erc.repos
rosdep update
chown -R ${FIRST_USER_NAME}:${FIRST_USER_NAME} /var/ros/rosdep
rosdep install --rosdistro melodic --from-paths src -iy
catkin config --extend /opt/ros/melodic --install -i /opt/ros/leo
catkin build --no-status

0 comments on commit 0e0d51b

Please sign in to comment.