-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbutton_cmds.yaml
30 lines (26 loc) · 985 Bytes
/
button_cmds.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Define button commands in this file
spacenav_buttons:
ros__parameters:
# If set to False, a button cannot be pressed twice in a row.
# Can be used to force alternation between to buttons, e.g. when doing `start recording`
# - `stop recording` tasks.
repeat_same_button : False
# Minimum duration in seconds to pass between two buttons pressed.
# Can be used to control the rate of pressing.
button_sleep: 1.0
# Define which commands to execute on pressing buttons
button_cmds :
[
# button 0
"echo 'start recording' && screen -d -m ros2 bag record topics /spacenav/twist",
# button 1
"echo 'stop recording' && screen -X stuff '^C'"
]
# Directories where the commands are executed
cmd_dirs :
[
# command 0
"",
# command 1
""
]