ROSserial test in the arduino board


1. Check your test enviroment (all example for Ubuntu14.04LTS & ROS Indigo)

<?xml version="1.0"?>

<launch>
<!-- run serial node for base mega -->    
    <node pkg="rosserial_python" type="serial_node.py" name="serial_node">
            <param name="port" value="/dev/ttyACM0"/>
            <param name="baud" value="57600"/>
      </node>

2. Download arduino source code which has ROSserial node program.

3. Executing ROS test

  • Open Terminator key
     $ test.launch
    
  • Check is there any error about the rosserial.

  • Change baudrate and test again

     <param name="port" value="/dev/ttyACM1"/>
     <param name="baud" value="1000000"/>
    

4. Multi-board test launch

  • Create python files

    cp ~/catkin_ws/src/rosserial/rosserial_python/nodes/serial_node.py ~/catkin_ws/src/rosserial/rosserial_python/nodes/serial_node1.py
    
  • modified the test launch (ex. test2boards.launch)

<?xml version="1.0"?>

<launch>
<!-- run serial node for base mega -->    
    <node pkg="rosserial_python" type="serial_node.py" name="serial_node">
            <param name="port" value="/dev/ttyACM0"/>
            <param name="baud" value="57600"/>
      </node>
    <node pkg="rosserial_python" type="serial_node1.py" name="serial_node1">
            <param name="port" value="/dev/ttyACM1"/>
            <param name="baud" value="1000000"/>
      </node>

</launch>
  • Check is there any error about the rosserial.

results matching ""

    No results matching ""