ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
What operating system will the mouse driver run on? In Linux, reading mouse data is a simple file read:
http://www.linuxquestions.org/questions/linux-newbie-8/reading-mouse-device-615178/
You can just create a ROS node that reads the mouse file data into the I/O event data structure and then your code can just look at the type/code values from the event data structure to tell which direction and how far the mouse was moved and publish that information into an ROS Topic for other ROS nodes to consume.