-
Notifications
You must be signed in to change notification settings - Fork 1
drivers_port_finder
This package is in charge to determine on which USB port are all the USB components connected.
If there are components connected using rosserial, port_finder will launch them automatically !
-
v1.0 (A17) : @tfuhrman
- First working version
The only configuration is to maintain the list of all components which can be connected on the robot. This is the components_list.xml file.
Server name | Type | Function |
---|---|---|
/drivers/port_finder/get_port |
Service | Service to ask port_finder what is the port of a component. The component could be "all" to get the list of all elements of port_finder. For Arduino boards the component is the node name ("ard_asserv" for instance). For other components, it's the name of the component (see the components_list.xml file). |
There are no clients nor subscriptions.
Just launch the node :
rosrun port_finder port_finder_node.py
Warning : the node can take a minute to be fully initialized because it will check a lot of things on the connected components.
The USB components identification uses the dmesg tool of linux. After parsing the dmesg information, port_finder matches the components_list.xml components to check which components are connected. Once it's done, the last check is to identify the Arduino board connected (to be launched by rosserial or not).
For all boards to launch with rosserial, the launch is automatically done by port_finder. Port_finder will also give a different name for all nodes launched with rosserial, to avoid conflicts.
Wiki UTCoupe 2018, Université de Technologie de Compiègne, France.
Any questions or comments ? Wanna join our team ? Contact us at [email protected]!