Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ROS protocol #21

Closed
alex-spataru opened this issue May 31, 2016 · 2 comments
Closed

Support for ROS protocol #21

alex-spataru opened this issue May 31, 2016 · 2 comments

Comments

@alex-spataru
Copy link
Member

@BearzRobotics suggested me to add support for the ROS some time ago. Now that I have a little more free time, I would like to begin working on that, since this could be useful for people outside FRC. I think that adding support for ROS is critical for the survival of this project, since it would attract more developers and therefore, it may help keep this project alive (and hopefully attract more people into FRC).

I have reviewed some information about ROS, however, I am still not familiar with it. So it may take some time for me to actually write something useful without your help.

Taking that into account, I would welcome any information/projects/code/comments regarding ROS. If required, we could draft a new protocol here and then begin working on the implementation.

@lopsided98
Copy link
Contributor

Coincidentally, I recently started learning ROS myself and am working on a robot that uses it (based on an iRobot Create).

As far as implementing the protocol, I would suggest linking against the roscpp library and running the driver station as a ROS node. Then you could publish sensor_msgs/Joy messages for the connected joysticks. AFAIK, ROS doesn't have any standard way to represent modes (teleop, auto, etc.) or enable/disable states, but you could simply publish them so that people can implement them accordingly in their own nodes.

For teleop control of my robot, I use joy and teleop_twist_joy, which might give you some idea of how the system works.

I'll try to help if you have any questions.

@alex-spataru
Copy link
Member Author

alex-spataru commented May 31, 2016

@lopsided98 Thanks for the links! If so, we could draft our own way to represent control modes, enabled states & other information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants