Browse Source

Fixed KeyError on broadcast_odom_tf

pull/5/head
hello-binit 4 years ago
parent
commit
1e19842482
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      stretch_core/nodes/stretch_driver

+ 1
- 1
stretch_core/nodes/stretch_driver View File

@ -1255,7 +1255,7 @@ class StretchBodyNode:
mode = rospy.get_param('~mode', "position")
rospy.loginfo('mode = ' + str(mode))
self.broadcast_odom_tf = rospy.get_param('~broadcast_odom_tf')
self.broadcast_odom_tf = rospy.get_param('~broadcast_odom_tf', False)
rospy.loginfo('broadcast_odom_tf = ' + str(self.broadcast_odom_tf))
if self.broadcast_odom_tf:
self.tf_broadcaster = tf2_ros.TransformBroadcaster()

Loading…
Cancel
Save