Skip to content

Instantly share code, notes, and snippets.

@yoneken
Last active August 29, 2015 14:11
Show Gist options
  • Save yoneken/2a7992327bc4ae5af855 to your computer and use it in GitHub Desktop.
Save yoneken/2a7992327bc4ae5af855 to your computer and use it in GitHub Desktop.
alva@ubilinux:~/ros_catkin_ws$ rosservice call open 20
result: 0
alva@ubilinux:~/ros_catkin_ws$ rosservice call set_dir 20 out
result: 0
alva@ubilinux:~/ros_catkin_ws$ rosservice call write 20 1
result: 0
alva@ubilinux:~/ros_catkin_ws$ rosservice call write 20 0
result: 0
alva@ubilinux:~/ros_catkin_ws$ rosservice call write 20 1
result: 0
alva@ubilinux:~/ros_catkin_ws$ rosservice call close 20
result: 0
alva@ubilinux:~/ros_catkin_ws$ rosservice call close 253
result: 0
alva@ubilinux:~/ros_catkin_ws$ rosservice call open 253
ERROR: service [/open] responded with an error: Invalid GPIO pin specified
root@ubilinux:/home/alva/ros_catkin_ws#rosrun ros_gpio gpio_server
[ INFO] [1418919035.718285743]: opened gpio(20)
[ INFO] [1418919053.836806460]: set gpio direction as output(20)
[ INFO] [1418919066.432194607]: wrote gpio(20) : 1
[ INFO] [1418919072.233151831]: wrote gpio(20) : 0
[ INFO] [1418919077.964681050]: wrote gpio(20) : 1
[ INFO] [1418919114.865040296]: closed gpio(20)
[ WARN] [1418919224.228190575]: tried to close un-initialized gpio(253)
[ INFO] [1418919224.229360671]: closed gpio(253)
[ERROR] [1418919233.034792667]: Exception thrown while processing service call: Invalid GPIO pin specified
^Croot@ubilinux:/home/alva/ros_catkin_ws#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment