Additional info on state changes of buttons#60
Additional info on state changes of buttons#60sven-bock wants to merge 7 commits intoRethinkRobotics:developmentfrom
Conversation
…camera is not opened. This is useful to check, if a camera is opened or closed.
…wheel" and the button id or wheel position is sent in the arguments. This is useful to use one callback for all buttons.
…e. Useful for common callbacks
|
@sven-bock you've got a whole wad of master commits in here. I see why: you're using the
Sorry for the extra work. Let me know if you need any additional guidance on cleaning up your branch. I promise, it's not usually this hard to submit a contribution :) |
|
superseded by #62 |
DigitalIO and Navigators
This little improvement enables you to see which buttons was pressed in your callback function.
Therefore you need only one callback function for all your buttons.
e.g.:
Camera
The current implementation raises an exception, if the camera is currently closed. I think it is useful in the camera controller to check, if the camera is opened or closed. Also in the past the service call to the camera list yielded all 3 cameras, which is not the case any more. Therefore I recommend to change the condition of the if in the init