-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
83 additions
and
0 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 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,7 @@ | ||
#!/bin/bash -e | ||
|
||
STATE=$1 | ||
|
||
ros2 service call /controller_manager/set_hardware_component_state \ | ||
controller_manager_msgs/srv/SetHardwareComponentState \ | ||
"{name: 'manipulator', target_state: {id: 0, label: '${STATE}'}}" |
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,19 @@ | ||
#!/bin/bash -e | ||
|
||
ros2 run joy joy_node --ros-args --params-file $SNAP_COMMON/joy_params.yaml | ||
|
||
# # Retrieve the namespace using snapctl | ||
# NAMESPACE="$(snapctl get ros.namespace)" | ||
|
||
# # Check if NAMESPACE is not set or is empty | ||
# if [ -z "$NAMESPACE" ]; then | ||
# # No namespace is set, run the launch command without the namespace argument | ||
# ros2 launch teleop_twist_joy teleop-launch.py \ | ||
# config_filepath:=$SNAP_COMMON/joy_teleop.config.yaml | ||
# # ros2 launch teleop_twist_joy teleop-launch.py | ||
# else | ||
# # Namespace is set, include it in the launch command | ||
# ros2 launch teleop_twist_joy teleop-launch.py \ | ||
# config_filepath:=$SNAP_COMMON/joy_teleop.config.yaml --ros-args -r __ns:=/$NAMESPACE | ||
# # ros2 launch teleop_twist_joy teleop-launch.py --ros-args -r __ns:=/$NAMESPACE | ||
# fi |
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,6 @@ | ||
joy_node: | ||
ros__parameters: | ||
dev: "/dev/input/js0" # Replace with your joystick device | ||
deadzone: 0.1 | ||
autorepeat_rate: 20.0 | ||
# dev_ff: "/dev/input/event18" # based on evtest |
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,26 @@ | ||
# joy_node: | ||
# ros__parameters: | ||
# device_id: 4 | ||
# device_name: "''" | ||
# deadzone: 0.5 | ||
# autorepeat_rate: 20.0 | ||
# sticky_buttons: false | ||
# coalesce_interval_ms: 1 | ||
--- | ||
/**: | ||
ros__parameters: | ||
axis_linear: | ||
x: 1 | ||
scale_linear: | ||
x: 0.7 | ||
scale_linear_turbo: | ||
x: 1.5 | ||
|
||
axis_angular: | ||
yaw: 2 | ||
scale_angular: | ||
yaw: 0.4 | ||
|
||
require_enable_button: true | ||
enable_button: 4 # TL shoulder button | ||
enable_turbo_button: -1 # disabled |
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