Skip to content

Commit

Permalink
revert name of node, add a few comments/spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeferguson committed Apr 18, 2013
1 parent 2696eac commit def0ad6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rosserial_python/nodes/serial_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,18 @@

if __name__=="__main__":

rospy.init_node("rosserial_node")
rospy.init_node("serial_node")
rospy.loginfo("ROS Serial Python Node")

port_name = rospy.get_param('~port','/dev/ttyUSB0')
baud = int(rospy.get_param('~baud','57600'))

# TODO: should these really be global?
tcp_portnum = int(rospy.get_param('/rosserial_embeddedlinux/tcp_port', '11411'))
fork_server = rospy.get_param('/rosserial_embeddedlinux/fork_server', False)

# TODO: do we really want command line params in addition to parameter server params?
sys.argv = rospy.myargv(argv=sys.argv)

if len(sys.argv) == 2 :
port_name = sys.argv[1]
if len(sys.argv) == 3 :
Expand Down

0 comments on commit def0ad6

Please sign in to comment.