2021-05-20 14:01:49 +02:00
|
|
|
.PHONY: build run upload legacy
|
2021-04-30 15:48:36 +02:00
|
|
|
|
|
|
|
SOURCES := $(wildcard src/ros2aria/src/*.cpp)
|
|
|
|
HEADERS := $(wildcard src/ros2aria/src/*.hpp)
|
|
|
|
|
|
|
|
build/ros2aria/ros2aria: $(SOURCES) $(HEADERS)
|
|
|
|
colcon build
|
|
|
|
|
2023-07-12 10:55:59 +02:00
|
|
|
build:
|
|
|
|
docker build -f Dockerfile -t delicjusz/pioneer .
|
2021-04-30 15:48:36 +02:00
|
|
|
|
2021-06-17 13:53:51 +02:00
|
|
|
# .uploaded: build/ros2aria/ros2aria
|
|
|
|
upload:
|
2024-11-15 19:34:32 +01:00
|
|
|
rsync -r . lab1_5@pionier4:~/ros2aria
|
2021-04-30 15:48:36 +02:00
|
|
|
touch .uploaded
|
|
|
|
|
2021-06-17 13:53:51 +02:00
|
|
|
# upload: .uploaded
|
2021-04-30 15:48:36 +02:00
|
|
|
|
|
|
|
run: upload
|
2023-06-21 19:21:38 +02:00
|
|
|
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
|
2021-04-30 15:48:36 +02:00
|
|
|
|
2021-05-20 14:01:49 +02:00
|
|
|
legacy:
|
2023-06-21 19:21:38 +02:00
|
|
|
ssh lab1_5@pionier2 -t -- ./run.sh
|
|
|
|
|
|
|
|
push_ros2aria:
|
|
|
|
./build_devcontainer.sh
|
2024-11-15 19:34:32 +01:00
|
|
|
docker push delicjusz/ros2aria:jazzy
|
2023-06-21 19:21:38 +02:00
|
|
|
|
|
|
|
push:
|
2024-11-15 19:34:32 +01:00
|
|
|
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
|
2023-06-21 19:21:38 +02:00
|
|
|
pull:
|
2023-07-12 10:55:59 +02:00
|
|
|
docker pull delicjusz/ros2aria
|
|
|
|
rosbridge:
|
|
|
|
docker build -f Dockerfile.rosbridge -t delicjusz/rosbridge .
|
|
|
|
docker push delicjusz/rosbridge
|