Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
b
c
d
e
i
l
m
p
r
s
t
Functions
+
Variables
b
c
d
e
i
l
m
p
r
s
t
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
i
l
m
o
p
r
s
t
u
w
~
+
Functions
_
a
b
c
f
g
i
m
o
p
r
s
t
u
w
~
+
Variables
a
b
c
d
e
f
i
l
p
s
t
u
+
Files
File List
+
File Members
+
All
b
c
d
e
i
m
p
r
t
+
Macros
b
c
d
e
i
m
p
r
t
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.packet_handler.PacketHandler
def PacketHandler(protocol_version)
Definition:
packet_handler.py:26
dynamixel_sdk.protocol1_packet_handler.Protocol1PacketHandler
Definition:
protocol1_packet_handler.py:46
dynamixel_sdk
Author(s): Gilbert
, Zerom
, Darby Lim
, Leon
autogenerated on Mon Feb 28 2022 22:16:13