Rosserial nodes in launch file are not running

asked 2016-10-19 05:51:05 -0600

Kishore Kumar gravatar image

Below is my ros launch file, when i try to launch the file two rosserial nodes ACM0 & ACM1 are starting but they are not setting up subscribers & publishers in the node. When i reboot the system the launch file starts and works perfectly. I use raspberry Pi & arduino UNO. How to fix this and is there anything wrong with my launch file?

<arg name="model" />
      <arg name="gui" default="False" />
      <param name="robot_description" textfile="$(find testbot_description)/urdf/testbot.urdf" />
      <param name="use_gui" value="$(arg gui)"/>
      <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" ></node>
      <node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher" />

<node name="teleop_twist_keyboard" pkg="teleop_twist_keyboard" type="" output="screen">
<node name="lpid_velocity" pkg="testbot_bringup" type="" output="screen">
 <node name="rpid_velocity" pkg="testbot_bringup" type="" output="screen">
<node name="twist_to_motors" pkg="testbot_bringup" type="" output="screen">

<node name="diff_tf" pkg="testbot_bringup" type="" output="screen">

<node name="serial_node1" pkg="rosserial_python" type="" output="screen">
<param name="port" value="/dev/ttyACM0" />
<param name="baud" value="57600" />

<node name="serial_node2" pkg="rosserial_python" type="" output="screen">
<param name="port" value="/dev/ttyACM1" />
<param name="baud" value="57600" />

<node name="rplidarNode"          pkg="rplidar_ros"  type="rplidarNode" output="screen">
  <param name="serial_port"         type="string" value="/dev/ttyUSB0"/>
  <param name="serial_baudrate"     type="int"    value="115200"/>
  <param name="frame_id"            type="string" value="laser"/>
  <param name="inverted"            type="bool"   value="false"/>
  <param name="angle_compensate"    type="bool"   value="true"/>

edit retag flag offensive close merge delete