2023-07-12 10:55:59 +02:00
|
|
|
# docker compose -f compose.hokuyo.yaml up
|
|
|
|
services:
|
|
|
|
hokuyo:
|
|
|
|
image: delicjusz/hokuyo
|
|
|
|
network_mode: host
|
|
|
|
ipc: host
|
2024-11-15 19:34:32 +01:00
|
|
|
restart: unless-stopped
|
2023-07-12 10:55:59 +02:00
|
|
|
environment:
|
2024-11-15 19:34:32 +01:00
|
|
|
- RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
|
2023-07-12 10:55:59 +02:00
|
|
|
- FASTRTPS_DEFAULT_PROFILES_FILE=/fastdds.xml
|
2024-11-15 19:34:32 +01:00
|
|
|
- CYCLONEDDS_URI=file:///cyclonedds.xml
|
2023-07-12 10:55:59 +02:00
|
|
|
volumes:
|
|
|
|
- ./fastdds.xml:/fastdds.xml
|
2024-11-15 19:34:32 +01:00
|
|
|
- ./cyclonedds.xml:/cyclonedds.xml
|
2023-07-12 10:55:59 +02:00
|
|
|
devices:
|
2024-01-22 11:36:55 +01:00
|
|
|
- /dev/hokuyo
|
2023-07-12 10:55:59 +02:00
|
|
|
command: >
|
|
|
|
ros2 run urg_node urg_node_driver --ros-args -r
|
|
|
|
__ns:=/pioneer${PIONEER_ID} -p
|
|
|
|
laser_frame_id:=pioneer${PIONEER_ID}/laser -p
|
2024-01-22 12:47:32 +01:00
|
|
|
serial_port:=/dev/hokuyo
|