Browse Source

Merge pull request #10 from PickNikRobotics/initialization_order_fix

Fix initialization order
pull/16/head
hello-binit 3 years ago
committed by GitHub
parent
commit
c4663dc6a9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      stretch_core/nodes/stretch_driver

+ 2
- 2
stretch_core/nodes/stretch_driver View File

@ -552,8 +552,6 @@ class StretchBodyNode:
self.magnetometer_mobile_base_pub = rospy.Publisher('magnetometer_mobile_base', MagneticField, queue_size=1)
self.imu_wrist_pub = rospy.Publisher('imu_wrist', Imu, queue_size=1)
rospy.Subscriber("cmd_vel", Twist, self.set_mobile_base_velocity_callback)
# ~ symbol gets parameter from private namespace
self.joint_state_rate = rospy.get_param('~rate', 15.0)
self.timeout = rospy.get_param('~timeout', 1.0)
@ -611,6 +609,8 @@ class StretchBodyNode:
SetBool,
self.runstop_service_callback)
rospy.Subscriber("cmd_vel", Twist, self.set_mobile_base_velocity_callback)
try:
# start loop to command the mobile base velocity, publish
# odometry, and publish joint states

Loading…
Cancel
Save