uscauv-legacy / old-uscauv-ros-pkg

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

Move Teleop Policy to uscauv_common #25

Open uscauv opened 11 years ago

uscauv commented 11 years ago

Also, clean up api and maybe implement a multi-joystick thing.

canondetortugas commented 11 years ago

Another note: Wrap try/catch blocks around all of the public methods that use the maps.

canondetortugas commented 11 years ago

Another another note: This class should have an addJoystickCalback method. The issue is that the getButtonAquired and getButtonReleased methods will only work properly if the node inheriting from this class is spinning at twice the speed of the joystick node. Otherwise we will run into issues with aliasing. The host node should call addJoystickCallback to add its own callback, then call the getButtonAquired etc. functions from within that callback.

canondetortugas commented 11 years ago

Also: Rename to JoystickPolicy