Skip to content

Commit

Permalink
REM: robot ros in api for back compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rmatsuda committed Aug 28, 2024
1 parent 17bbb1b commit b968592
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions invesalius/net/neuronavigation_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,32 +76,32 @@ def __bind_events(self):
Publisher.subscribe(self.update_tracker_poses, "From Neuronavigation: Update tracker poses")
Publisher.subscribe(self.update_target_orientation, "Update target orientation")
Publisher.subscribe(self.connect_to_robot, "Neuronavigation to Robot: Connect to robot")
Publisher.subscribe(self.set_target, "Neuronavigation to Robot: Set target")
Publisher.subscribe(self.unset_target, "Neuronavigation to Robot: Unset target")
Publisher.subscribe(
self.set_tracker_fiducials, "Neuronavigation to Robot: Set tracker fiducials"
)
Publisher.subscribe(
self.collect_robot_pose,
"Neuronavigation to Robot: Collect coordinates for the robot transformation matrix",
)
Publisher.subscribe(
self.reset_robot_transformation_matrix,
"Neuronavigation to Robot: Reset coordinates collection for the robot transformation matrix",
)
Publisher.subscribe(
self.estimate_robot_transformation_matrix,
"Neuronavigation to Robot: Estimate robot transformation matrix",
)
Publisher.subscribe(
self.set_robot_transformation_matrix,
"Neuronavigation to Robot: Set robot transformation matrix",
)
Publisher.subscribe(
self.update_displacement_to_target,
"Neuronavigation to Robot: Update displacement to target",
)
Publisher.subscribe(self.set_objective, "Neuronavigation to Robot: Set objective")
# Publisher.subscribe(self.set_target, "Neuronavigation to Robot: Set target")
# Publisher.subscribe(self.unset_target, "Neuronavigation to Robot: Unset target")
# Publisher.subscribe(
# self.set_tracker_fiducials, "Neuronavigation to Robot: Set tracker fiducials"
# )
# Publisher.subscribe(
# self.collect_robot_pose,
# "Neuronavigation to Robot: Collect coordinates for the robot transformation matrix",
# )
# Publisher.subscribe(
# self.reset_robot_transformation_matrix,
# "Neuronavigation to Robot: Reset coordinates collection for the robot transformation matrix",
# )
# Publisher.subscribe(
# self.estimate_robot_transformation_matrix,
# "Neuronavigation to Robot: Estimate robot transformation matrix",
# )
# Publisher.subscribe(
# self.set_robot_transformation_matrix,
# "Neuronavigation to Robot: Set robot transformation matrix",
# )
# Publisher.subscribe(
# self.update_displacement_to_target,
# "Neuronavigation to Robot: Update displacement to target",
# )
# Publisher.subscribe(self.set_objective, "Neuronavigation to Robot: Set objective")

# Functions for InVesalius to send updates.

Expand Down Expand Up @@ -309,14 +309,14 @@ def update_efield_vectorROIMax(self, position, orientation, T_rot, id_list):
def __set_callbacks(self, connection):
connection.set_callback__open_orientation_dialog(self.open_orientation_dialog)
connection.set_callback__stimulation_pulse_received(self.stimulation_pulse_received)
connection.set_callback__update_robot_status(self.update_robot_status)
connection.set_callback__robot_connection_status(self.robot_connection_status)
connection.set_callback__robot_pose_collected(self.robot_pose_collected)
connection.set_callback__set_objective(self.set_objective_to_neuronavigation)
connection.set_callback__close_robot_dialog(self.close_robot_dialog)
connection.set_callback__update_robot_transformation_matrix(
self.update_robot_transformation_matrix
)
# connection.set_callback__update_robot_status(self.update_robot_status)
# connection.set_callback__robot_connection_status(self.robot_connection_status)
# connection.set_callback__robot_pose_collected(self.robot_pose_collected)
# connection.set_callback__set_objective(self.set_objective_to_neuronavigation)
# connection.set_callback__close_robot_dialog(self.close_robot_dialog)
# connection.set_callback__update_robot_transformation_matrix(
# self.update_robot_transformation_matrix
# )
connection.set_callback__set_vector_field(self.set_vector_field)

def add_pedal_callback(self, name, callback, remove_when_released=False):
Expand Down

0 comments on commit b968592

Please sign in to comment.