Browse Source

Fixed KeyError on broadcast_odom_tf

pull/1/head
hello-binit 4 years ago
parent
commit
db00b3a4b4
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

@ -1253,7 +1253,7 @@ class StretchBodyNode:
mode = rospy.get_param('~mode', "position") mode = rospy.get_param('~mode', "position")
rospy.loginfo('mode = ' + str(mode)) 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)) rospy.loginfo('broadcast_odom_tf = ' + str(self.broadcast_odom_tf))
if self.broadcast_odom_tf: if self.broadcast_odom_tf:
self.tf_broadcaster = tf2_ros.TransformBroadcaster() self.tf_broadcaster = tf2_ros.TransformBroadcaster()

Loading…
Cancel
Save