Browse Source

clean if-else

Co-authored-by: Janna Lin <jnl77@cornell.edu>
pull/116/head
yy389 1 year ago
parent
commit
9566763ae8
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      hello_helpers/src/hello_helpers/hello_misc.py

+ 1
- 0
hello_helpers/src/hello_helpers/hello_misc.py View File

@ -243,6 +243,7 @@ class HelloNode:
self.tf2_buffer = tf2_ros.Buffer()
self.tf2_listener = tf2_ros.TransformListener(self.tf2_buffer)
if self.robot_name == None:
self._joint_states_subscriber = rospy.Subscriber('/stretch/joint_states', JointState, self._joint_states_callback)
self._tool_subscriber = rospy.Subscriber('/tool', String, self._tool_callback)

Loading…
Cancel
Save