Skip to content

Commit

Permalink
Use launch file.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpolzin committed Nov 29, 2023
1 parent 2f551b0 commit c722d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ COPY ros_as5048b src/ros_as5048b
RUN . /opt/ros/${ROS_DISTRO}/setup.sh && colcon build --symlink-install --event-handlers console_direct+

RUN echo 'alias build="colcon build --symlink-install --event-handlers console_direct+"' >> /etc/bash.bashrc && \
echo 'source /colcon_ws/install/setup.bash; ros2 run ros_as5048b ros_as5048b_publisher --ros-args -p i2c_device:=${I2C_DEVICE} -p i2c_address:=${I2C_ADDRESS}' >> /run.sh && chmod +x /run.sh && \
echo 'source /colcon_ws/install/setup.bash; ros2 launch ros_as5048b ros_as5048b.launch.py i2c_device:=${I2C_DEVICE} i2c_address:=${I2C_ADDRESS}' >> /run.sh && chmod +x /run.sh && \
echo 'alias run="su - ros --whitelist-environment=\"I2C_DEVICE,I2C_ADDRESS\" /run.sh"' >> /etc/bash.bashrc

0 comments on commit c722d9b

Please sign in to comment.