ros2aria/Makefile
Jakub Delicat af473e68f0 cyclonedds config
Signed-off-by: Jakub Delicat <jakub.delicat@pwr.edu.pl>
2024-11-15 19:34:32 +01:00

39 lines
1.1 KiB
Makefile

.PHONY: build run upload legacy
SOURCES := $(wildcard src/ros2aria/src/*.cpp)
HEADERS := $(wildcard src/ros2aria/src/*.hpp)
build/ros2aria/ros2aria: $(SOURCES) $(HEADERS)
colcon build
build:
docker build -f Dockerfile -t delicjusz/pioneer .
# .uploaded: build/ros2aria/ros2aria
upload:
rsync -r . lab1_5@pionier4:~/ros2aria
touch .uploaded
# upload: .uploaded
run: upload
ssh lab1_5@pionier2 -t -- docker run --rm --network=host -it --device /dev/ttyS0 delicjusz/ros2aria /bin/bash /ros2_ws/ros2aria/run.sh
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Aria/lib ros2 run ros2aria ros2aria --ros-args -p pioneer_id:=2
legacy:
ssh lab1_5@pionier2 -t -- ./run.sh
push_ros2aria:
./build_devcontainer.sh
docker push delicjusz/ros2aria:jazzy
push:
docker build -f Dockerfile.pioneer -t delicjusz/pioneer:jazzy .
docker push delicjusz/pioneer:jazzy
docker build -f Dockerfile.hokuyo -t delicjusz/hokuyo:jazzy .
docker push delicjusz/hokuyo:jazzy
pull:
docker pull delicjusz/ros2aria
rosbridge:
docker build -f Dockerfile.rosbridge -t delicjusz/rosbridge .
docker push delicjusz/rosbridge