Skip to content

Commit

Permalink
tweaks to build
Browse files Browse the repository at this point in the history
  • Loading branch information
tetov committed Jun 10, 2024
1 parent 8a02096 commit 8b46f61
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ RUN rosdep install -y --from-paths . --ignore-src --rosdistro ${ROS_DISTRO}

RUN . /opt/ros/${ROS_DISTRO}/setup.bash && catkin build

COPY ros_catkin_entrypoint.sh /usr/local/bin/ros_catkin_entrypoint.sh

RUN chmod +x /usr/local/bin/ros_catkin_entrypoint.sh

# Always source ros_catkin_entrypoint.sh when launching bash (e.g. when attaching to container)
RUN echo "source /usr/local/bin/ros_catkin_entrypoint.sh" >> /root/.bashrc
RUN echo 'source $CATKIN_WS/src/biodigitalmatter_ros/bashrc_fragment' >> /root/.bashrc

ENTRYPOINT ["roslaunch" "biodigitalmatter_ros" "bringup.lauch"]
ENTRYPOINT ["/usr/local/bin/ros_catkin_entrypoint.sh"]
CMD ["bash"]
10 changes: 5 additions & 5 deletions dependencies.repos
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# -*- mode: yaml -*-
---
repositories:
abb:
type: git
url: https://github.com/ros-industrial/abb.git
version: kinetic-devel
abb_irb4600_40_255:
type: git
url: https://github.com/gramaziokohler/abb_irb4600_40_255.git
Expand All @@ -13,14 +17,10 @@ repositories:
type: git
url: https://github.com/compas-rrc/compas_rrc_ros.git
version: v1.1.3
ros_file_server:
file_server:
type: git
url: https://github.com/gramaziokohler/ros_file_server.git
version: master
abb:
type: git
url: https://github.com/ros-industrial/abb.git
version: kinetic-devel
axis_camera: # need newer than what's in rosdep
type: git
url: https://github.com/ros-drivers/axis_camera.git
Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<exec_depend>compas_rrc_driver</exec_depend>
<exec_depend>abb_irb4600_40_255_moveit_config</exec_depend>
<exec_depend>file_server</exec_depend>
<exec_depend>depthai-ros</exec_depend> <!-- luxonis -->
<exec_depend>depthai</exec_depend> <!-- luxonis -->
<exec_depend>realsense2_camera</exec_depend>
<exec_depend>rgbd_launch</exec_depend> <!-- dep realsense2 -->
<exec_depend>axis_camera</exec_depend>
Expand Down
8 changes: 6 additions & 2 deletions bashrc_fragment.sh → ros_catkin_entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
source /opt/ros/noetic/setup.bash
#!/bin/bash

export CATKIN_WS=~/catkin_ws
source "/opt/ros/$ROS_DISTRO/setup.bash"

export CATKIN_WS=${CATKIN_WS:-$HOME/catkin_ws}

if [ -f $CATKIN_WS/devel/setup.bash ] ; then
source $CATKIN_WS/devel/setup.bash
Expand All @@ -13,3 +15,5 @@ if [ -f $CATKIN_WS/src/biodigitalmatter_ros/.env ] ; then
fi

mkdir -p ~/rosbags

exec "$@"

0 comments on commit 8b46f61

Please sign in to comment.