Simple ROS wripper for Adafruit_CircuitPython_ServoKit. We test it in Jetson NX and AGX. This should also work on pi 4 and other ciruitpython support platform
Type | Topic | Data_type |
---|---|---|
Subscriber | /servo/angle | Custom Message AllServoAngle |
/servo/angle
, AllServoAngle
- ROS
- Python3
- CircuitPython_ServoKit
git clone https://github.com/Drone-FYP2021-PolyU-EIE/ServoKit.git
cd ServoKit
bash installServoKit.sh
Now cd to your catkin workspace/src
git clone https://github.com/Drone-FYP2021-PolyU-EIE/ROS_CircuitPython_ServoKit.git
catkin_make --cmake-args \
-DPYTHON_EXECUTABLE=/usr/bin/python3
lauchROS_CircuitPython_ServoKit_Node.launch
roslaunch ros_circuitpython_servokit_node exampleSimMode.launch
Header + float32 array lenght of 16(0th mean channel 0, etc... )
rosmsg show ros_circuitpython_servokit_msgs/AllServoAngle
sudo i2cdetect -y -r <i2c bus>
sudo -H pip3 install Adafruit-PlatformDetect==3.19.6
sudo -H pip3 install adafruit-circuitpython-typing