uscauv-legacy / old-uscauv-ros-pkg

ROS software used on robots made by the USC AUV Team.
4 stars 6 forks source link

Teleop Policy #20

Closed canondetortugas closed 11 years ago

canondetortugas commented 11 years ago

Make a class for providing teleop functionality to task nodes. Task nodes will inherit from this class. It will subscribe to /joy and allow nodes to access the state of joystick devices. It will have methods along the lines of getButton('A') for directly getting the state of different buttons and will have methods like getEnableButton(), getPrimaryButton(), etc. Where the mapping from buttons like A to labels such as 'primary' will be set by a config file loaded at runtime. Not sure how axes will be handled yet.

canondetortugas commented 11 years ago

https://github.com/uscauv/uscauv-ros-pkg/blob/groovy_unstable/auv_tasks/include/auv_tasks/teleop_policy.h

Did this a while ago. It's not perfect yet but it's coming along.