How adham-elarabawy/open-quadruped works
OpenQuadruped is a 12-DOF quadruped robot with ROS-based control, embedded servo/sensor handling, and a separate 3D visualization tool. The principal path is gait or body-pose control through trajectory and inverse-kinematics stages to joint-angle commands, which the Teensy firmware converts into servo positions; the README documents these capabilities, though the complete ROS-side command path is not sampled. The graph also preserves the documented visualization branch. Firmware edges reflect the shown callback and calls; unsampled subsystem links are omitted or marked unverified.
Main entry points: main.cpp Teensy Firmware · gait_planner.py Gait Planning · body_ik.py Body IK · ros_lib Generated ROS Messages
Components 20
Motion Control
- Gait Planning
control_library/control_library/gait_planner.py - Gait Parameters
control_library/control_library/gait_parameters.py - Bezier Trajectories
control_library/control_library/bezier.py - Body IK
control_library/control_library/body_ik.py - Leg IK
control_library/control_library/leg_ik.py - ROS Interface
ros-workspace/src/open_quadruped/nodes/interface_process.py
Teensy Hardware
- Teensy Firmware
llc-teensy/src/main.cpp - Servo Control
llc-teensy/lib/AdvServo/AdvServo.cpp - Foot Sensors
llc-teensy/lib/FootSensor/FootSensor.cpp - Embedded IK
llc-teensy/lib/InverseKinematics/InverseKinematics.cpp - Angle Utilities
llc-teensy/lib/Util/Util.cpp
ROS Support
- ROS Node Handle
llc-teensy/lib/ros_lib/ros/node_handle.h - ROS Publisher
llc-teensy/lib/ros_lib/ros/publisher.h - ROS Subscriber
llc-teensy/lib/ros_lib/ros/subscriber.h - Message Base
llc-teensy/lib/ros_lib/ros/msg.h - Generated ROS Messages
llc-teensy/lib/ros_lib
Visualization
- Animation Tool
vis-tool/animate.py - 3D IK Engine
vis-tool/IK_Engine.py - Visualization Interface
vis-tool/interface.py
Other components
- Robot Operator
Connections 19
- Robot Operator → Gait Planning: sets gait
- Gait Planning → Gait Parameters: uses parameters
- Gait Planning → Bezier Trajectories: plans curves
- Robot Operator → Body IK: sets body pose
- Body IK → Leg IK: feeds leg IK
- ROS Interface → Body IK: imports
ros-workspace/src/open_quadruped/nodes/interface_process.py - ROS Interface → Leg IK: imports
ros-workspace/src/open_quadruped/nodes/interface_process.py - Teensy Firmware → Servo Control: updates servos
llc-teensy/src/main.cpp - Teensy Firmware → Foot Sensors: updates sensors
llc-teensy/src/main.cpp - Teensy Firmware → Angle Utilities: converts angles
llc-teensy/src/main.cpp - Teensy Firmware → Embedded IK: includes
llc-teensy/src/main.cpp - Teensy Firmware → ROS Subscriber: registers subscriber
llc-teensy/src/main.cpp - Teensy Firmware → Generated ROS Messages: receives joint angles
llc-teensy/src/main.cpp - ROS Publisher → ROS Node Handle: uses handle
llc-teensy/lib/ros_lib/ros/publisher.h - ROS Subscriber → Generated ROS Messages: handles messages
llc-teensy/lib/ros_lib/ros/subscriber.h - Generated ROS Messages → Message Base: extends base
llc-teensy/lib/ros_lib/actionlib_tutorials/AveragingResult.h - Robot Operator → Animation Tool: starts visualization
- Animation Tool → 3D IK Engine: uses engine
vis-tool/animate.py - Visualization Interface → 3D IK Engine: uses engine
vis-tool/interface.py