-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from husarion/add-namespace
Add namespace
- Loading branch information
Showing
14 changed files
with
200 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ROS_NAMESPACE=robot1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
services: | ||
joy2twist: | ||
image: husarion/joy2twist:humble-add-namespace | ||
network_mode: host | ||
ipc: host | ||
devices: | ||
- /dev/input | ||
volumes: | ||
- ./joy2twist.yaml:/joy2twist.yaml | ||
command: > | ||
ros2 launch joy2twist gamepad_controller.launch.py | ||
joy2twist_params_file:=/joy2twist.yaml | ||
namespace:=${ROS_NAMESPACE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
services: | ||
|
||
rosbot: | ||
image: husarion/rosbot:humble-ros2-add-namespaces | ||
network_mode: bridge # using docker0 network interface | ||
command: ros2 launch rosbot_bringup bringup.launch.py namespace:=${ROS_NAMESPACE} | ||
|
||
microros: | ||
image: husarion/micro-ros-agent:humble-3.1.3-20231122 | ||
network_mode: bridge # using docker0 network interface | ||
devices: | ||
- ${SERIAL_PORT:?err} | ||
command: ros2 run micro_ros_agent micro_ros_agent serial -D $SERIAL_PORT serial -b 576000 # -v6 | ||
|
||
ros2router: | ||
image: husarnet/ros2router:1.3.0 | ||
network_mode: host | ||
volumes: | ||
- ./ros2router_config.yaml:/var/tmp/DDS_ROUTER_CONFIGURATION.yaml | ||
environment: | ||
- AUTO_CONFIG=FALSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
DOCKER_IMAGE=$(yq .services.rosbot.image $(dirname "$0")/compose.rosbot2r.yaml) | ||
|
||
docker stop $(docker ps -q) | ||
|
||
docker run --rm -it --privileged \ | ||
$DOCKER_IMAGE \ | ||
/flash-firmware.py /root/firmware.bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/**: | ||
ros__parameters: | ||
linear_velocity_factor: | ||
fast: 1.0 | ||
regular: 0.5 | ||
slow: 0.2 | ||
|
||
angular_velocity_factor: | ||
fast: 1.0 | ||
regular: 0.5 | ||
slow: 0.2 | ||
|
||
# This button mapping should be adjusted to the specific controller | ||
# The following map is suited for Logitech F710 | ||
button_index_map: | ||
axis: | ||
angular_z: 0 # Left joystick | ||
linear_x: 3 # Right joystick | ||
linear_y: 2 # Right joystick | ||
dead_man_switch: 4 # LB | ||
fast_mode: 7 # RT | ||
slow_mode: 5 # RB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: v3.0 | ||
allowlist: | ||
- name: "rt/robot1/cmd_vel" | ||
type: "geometry_msgs::msg::dds_::Twist_" | ||
blocklist: [] | ||
builtin-topics: [] | ||
participants: | ||
- name: DockerParticipant | ||
kind: local | ||
domain: 0 | ||
whitelist-interfaces: | ||
- 172.17.0.1 # docker0 IP address | ||
- name: HostParticipant | ||
kind: local | ||
domain: 0 | ||
ignore-participant-flags: filter_different_and_same_process # Discovery traffic from own host is discarded |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
x-gpu-config: | ||
&gpu-config | ||
runtime: nvidia | ||
environment: | ||
- DISPLAY=${DISPLAY:?err} | ||
- NVIDIA_VISIBLE_DEVICES=all | ||
- NVIDIA_DRIVER_CAPABILITIES=all | ||
|
||
x-cpu-config: | ||
&cpu-config | ||
environment: | ||
- DISPLAY=${DISPLAY:?err} | ||
- LIBGL_ALWAYS_SOFTWARE=1 | ||
|
||
services: | ||
rosbot_xl: | ||
image: husarion/rosbot-xl-gazebo:humble-0.8.2-20230913-stable | ||
<<: *gpu-config | ||
volumes: | ||
- /tmp/.X11-unix:/tmp/.X11-unix:rw | ||
- /dev:/dev | ||
command: ros2 launch rosbot_xl_gazebo simulation.launch.py mecanum:=True | ||
|
||
joy2twist: | ||
image: husarion/joy2twist:humble-1.0.0-20230424-stable | ||
devices: | ||
- /dev/input/js0 | ||
volumes: | ||
- ../joy2twist/config/joy2twist.yaml:/joy2twist.yaml | ||
command: ros2 launch joy2twist gamepad_controller.launch.py | ||
joy2twist_params_file:=/joy2twist.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# If your ROSbot's IP addr is 10.5.10.64 execute: | ||
# ./sync_with_robot.sh 10.5.10.64 | ||
|
||
sshpass -p "husarion" rsync -vRr --delete ./ husarion@$1:/home/husarion/${PWD##*/} | ||
|
||
while inotifywait -r -e modify,create,delete,move ./ ; do | ||
sshpass -p "husarion" rsync -vRr --delete ./ husarion@$1:/home/husarion/${PWD##*/} | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters