solarian-robstride 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ """
2
+ solarian-robstride
3
+
4
+ Robstride servo actuator and CAN bus plugin for the Solarian robotics framework.
5
+ """
6
+
7
+ __version__ = "0.1.0"
@@ -0,0 +1,34 @@
1
+ """
2
+ Robstride Servo Actuator
3
+
4
+ Actuator class for Robstride motors (RS00, EL05, RS05).
5
+ """
6
+
7
+ from solarian.core.servo import Servo
8
+ from solarian.core.data import PosData, SpeedData, TemperatureData
9
+
10
+ from solarian_robstride.bus import RobstrideBus
11
+
12
+
13
+ class RobstrideServo(Servo):
14
+ """
15
+ Servo actuator for Robstride CAN motors.
16
+
17
+ Declare it as a class attribute inside a Module::
18
+
19
+ from solarian_robstride.actuator import RobstrideServo
20
+
21
+ class MyArmModule(Module):
22
+ shoulder_pan = RobstrideServo()
23
+ elbow_flex = RobstrideServo()
24
+
25
+ The corresponding :class:`RobstrideBus` is used automatically. Pass
26
+ ``model`` on the declaration (``rs00``, ``el05``, or ``rs05``).
27
+ """
28
+
29
+ bus_class = RobstrideBus
30
+ default_mode = "range_m100_100"
31
+
32
+ pos = PosData()
33
+ speed = SpeedData()
34
+ temperature = TemperatureData()