Skip to content

Commit

Permalink
add ros2 socketcan interface
Browse files Browse the repository at this point in the history
  • Loading branch information
meshvaD committed Jul 2, 2024
1 parent ccb7ff1 commit d874e1b
Show file tree
Hide file tree
Showing 26 changed files with 1,321 additions and 858 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ WORKDIR /
RUN apt-get -qq autoremove -y && apt-get -qq autoclean && apt-get -qq clean && \
rm -rf /root/* /root/.ros /tmp/* /var/lib/apt/lists/* /usr/share/doc/*

RUN apt update &&\
apt install software-properties-common -y &&\
add-apt-repository ppa:lely/ppa -y &&\
apt update &&\
apt install net-tools iproute2 can-utils kmod liblely-coapp-dev liblely-co-tools python3-dcf-tools -y

RUN apt install -y ros-$ROS_DISTRO-ros2-socketcan

################################ Build ################################
FROM dependencies as build

Expand Down
2 changes: 1 addition & 1 deletion modules/dev_overrides/docker-compose.interfacing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
image: "${INTERFACING_SENSOR_IMAGE}:build_${TAG}"
command: tail -F anything
volumes:
- ${MONO_DIR}/src/sensor_interfacing:/home/bolty/ament_ws/src/sensor_interfacing
- ${MONO_DIR}/src/interfacing/sensor_interfacing:/home/bolty/ament_ws/src/sensor_interfacing

can_interfacing:
<<: *fixuid
Expand Down
6 changes: 6 additions & 0 deletions modules/docker-compose.interfacing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ services:
- "${INTERFACING_SENSOR_IMAGE}:build_${TAG}"
- "${INTERFACING_SENSOR_IMAGE}:build_main"
target: deploy
environment:
VCAN_TARGET_PORT: 6002
ports:
- 6001:6000/udp
cap_add:
- NET_ADMIN
image: "${INTERFACING_SENSOR_IMAGE}:${TAG}"
command: /bin/bash -c "ros2 launch sensor_interfacing sensor_interfacing.launch.py"

Expand Down

This file was deleted.

Empty file.
Loading

0 comments on commit d874e1b

Please sign in to comment.