Skip to content

Commit

Permalink
Updating new calibration gui to prevent old gui breaking (#42)
Browse files Browse the repository at this point in the history
* updating gui to prevent old gui breaking

* lint
  • Loading branch information
georgiablanco authored Sep 5, 2022
1 parent 5ac4ce9 commit 5132bb5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ add_service_files(
calibrate.srv
set_source.srv
persist.srv
SetStaticCalibrationTF.srv
SetStaticCalibrationTFNew.srv
)

add_action_files(
Expand Down
5 changes: 3 additions & 2 deletions src/polhemus_ros_driver/publish_static_knuckle_tf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import tf
import os
from geometry_msgs.msg import TransformStamped
from polhemus_ros_driver.srv import SetStaticCalibrationTF
from polhemus_ros_driver.srv import SetStaticCalibrationTFNew
import rospkg


Expand All @@ -20,7 +20,8 @@ def __init__(self):
self._broadcaster = tf2_ros.StaticTransformBroadcaster()
self._services = dict()
for hand_prefix in self._get_connected_gloves():
self._services[hand_prefix] = rospy.Service(f"/{hand_prefix}/update_static_tf", SetStaticCalibrationTF,
self._services[hand_prefix] = rospy.Service(f"/{hand_prefix}/update_static_tf_new",
SetStaticCalibrationTFNew,
self.publish_tf)

def _get_connected_gloves(self):
Expand Down
File renamed without changes.

0 comments on commit 5132bb5

Please sign in to comment.