Skip to content

Commit

Permalink
Fix check joystick
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Sep 2, 2021
1 parent ff018ea commit 868c71d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nanosaur/scripts/bin/nanosaur
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ main()
# Catkin main package

# Check if option is in list
local options=("update" "info" "activate" "run" "help" "dev" "stop")
local options=("update" "info" "activate" "run" "help" "dev" "start" "stop")
local error=true
for item in ${options[@]} ; do
if [ "$item" == "$option" ]; then
Expand Down
2 changes: 1 addition & 1 deletion nanosaur_control/launch/twist_control.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def generate_launch_description():

# teleoperation joystick nanosaur
# only if joystick is connected
launch_description += [teleop_launch] if os.path.isfile("/dev/input/js0") else []
launch_description += [teleop_launch] if os.path.exists("/dev/input/js0") else []

return launch.LaunchDescription(launch_description)
# EOF

0 comments on commit 868c71d

Please sign in to comment.