rosserial - port/baud parameters
Hello,
After having my arduino rosserial node break spontaneously after an update to rosserial, I narrowed down the reason to a change in serial_node.py.
My launch file parameters for baud rate and port would no longer get passed to serial_node.py correctly, making it default to ttyUSB0 and 57600 bps.
<node pkg="rosserial_python" type="serial_node.py" name="serial_node" output="screen">
<param name="~port" value="/dev/ttyACM0" />
<param name="~baud" value="115200" />
</node>
port_name = rospy.get_param('~port','/dev/ttyUSB0')
baud = int(rospy.get_param('~baud','57600'))
...
rospy.init_node("serial_node")
From my end, this is caused by serial_node.py trying to load these parameters before it initializes the node. Changing the node to initialize before loading parameters, the proper port/baud rate get passed to the node from the launch file.
No one else seems to have noticed this problem, is there a more obvious reason why my launch file parameters are no longer working?