packet_handler.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 
4 
19 
20 # Author: Ryu Woon Jung (Leon)
21 
22 from .protocol1_packet_handler import *
23 from .protocol2_packet_handler import *
24 
25 
26 def PacketHandler(protocol_version):
27  # FIXME: float or int-to-float comparison can generate weird behaviour
28  if protocol_version == 1.0:
29  return Protocol1PacketHandler()
30  elif protocol_version == 2.0:
31  return Protocol2PacketHandler()
32  else:
33  return Protocol2PacketHandler()
def PacketHandler(protocol_version)


dynamixel_sdk
Author(s): Gilbert , Zerom , Darby Lim , Leon
autogenerated on Mon Feb 28 2022 22:16:13