[[Tutorial]]

The aim of this tutorial is to explain how to use mysql database using ROS.
In the example below, messages are sent from SIGViewer to SIGVerse controller which will send them to ROS mysql node, this later receives messages and connects to the database to write/read data.


#contents

*Packages creation [#ed1b8136]
Create 2 packages, sig_mysql and db_controller:
 $ cd ~/catkin_ws/src
 $ catkin_create_pkg sig_mysql
 $ catkin_create_pkg db_controller

**Overview[#ed1b8137]
When the server is launched, 2 ros nodes are created, the SIGVerse controller node and ROS mysql node, which involves the creation of a new topic called “database”, it is used to read/write data.
Data is sent from the SIGViewer to the controller as messages; it will be published on the database node to be read then by the ROS mysql node, this later uses this data to send/receives queries to the Mysql database.  

&ref(mysql_ros.PNG,,80%);


***Server [#ed1b9133]


Front page   New List of pages Search Recent changes   Help   RSS of recent changes