Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use node parameters from yaml files #2

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ services:
environment:
- RMW_IMPLEMENTATION=${RMW_IMPLEMENTATION:-rmw_cyclonedds_cpp}
- ROS_DOMAIN_ID=${ROS_DOMAIN_ID:-0}
devices:
- /dev/ttyUSBPAD
volumes:
- /dev:/dev
- ./config/crsf_teleop.yaml:/ros2_ws/install/husarion_ugv_crsf_teleop/share/husarion_ugv_crsf_teleop/config/crsf_teleop.yaml
command: >
ros2 launch husarion_ugv_crsf_teleop teleop.launch.py
port:=/dev/ttyUSBPAD namespace:=panther
ros2 launch husarion_ugv_crsf_teleop teleop.launch.py namespace:=panther
9 changes: 9 additions & 0 deletions config/crsf_teleop.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**:
crsf_teleop:
ros__parameters:
port: /dev/ttyUSBPAD
baud: 576000
e_stop_republish: false
enable_cmd_vel_silence_switch: false
linear_speed_presets: [0.5, 1.0, 2.0]
angular_speed_presets: [0.5, 1.0, 2.0]
4 changes: 2 additions & 2 deletions husarion_ugv_crsf_teleop/config/crsf_teleop.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**:
crsf_teleop_node:
crsf_teleop:
ros__parameters:
port: /dev/ttyUSB0
port: /dev/ttyUSBPAD
baud: 576000
e_stop_republish: false
enable_cmd_vel_silence_switch: false
Expand Down
Loading