src
dynamixel_sdk
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
()
dynamixel_sdk.protocol2_packet_handler.Protocol2PacketHandler
Definition:
protocol2_packet_handler.py:51
dynamixel_sdk.protocol1_packet_handler.Protocol1PacketHandler
Definition:
protocol1_packet_handler.py:46
dynamixel_sdk.packet_handler.PacketHandler
def PacketHandler(protocol_version)
Definition:
packet_handler.py:26
dynamixel_sdk
Author(s): Gilbert
, Zerom
, Darby Lim
, Leon
autogenerated on Wed Mar 2 2022 00:13:50