Skip to content

Commit

Permalink
[smart_device_protocol_interface] update
Browse files Browse the repository at this point in the history
  • Loading branch information
sktometometo committed Mar 26, 2024
1 parent 2d0b4cc commit b78e4bb
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,6 @@ def _callback_data_for_interface(self, src_address, frame):
interface_description = frame.interface_description
if interface_description in self._interface_callbacks:
self._interface_callbacks[interface_description](src_address, frame)
else:
rospy.logwarn("Unknown interface: {}".format(interface_description))
rospy.logwarn(
"known interface list: {}".format(
list(self._interface_callbacks.keys())
)
)

def register_interface_callback(
self,
Expand All @@ -319,7 +312,6 @@ def register_interface_callback(
],
):
self._interface_callbacks[interface_description] = callback
rospy.logwarn("Register callback to {}".format(interface_description))

def unregister_interface_callback(self, interface_description: Tuple[str, str]):
del self._interface_callbacks[interface_description]
Expand Down Expand Up @@ -349,4 +341,3 @@ def _cb_uwb(self, msg: UWBDistance):
def _interface_callback_to_uwb(self, src_address, frame: DataFrame):
if src_address in self._device_interfaces:
self._device_interfaces[src_address]["uwb_id"] = frame.content[0]
rospy.logwarn("UWB ID: {}".format(frame.content[0]))

0 comments on commit b78e4bb

Please sign in to comment.