mithi/hexapod-robot-simulator

View on GitHub
hexapod/templates/pose_template.py

Summary

Maintainability
A
0 mins
Test Coverage
# pose = {
#   LEG_ID: {
#     'name': LEG_NAME,
#     'id': LEG_ID
#     'coxia': ALPHA,
#     'femur': BETA,
#     'tibia': GAMMA}
#   }
#   ...
# }

HEXAPOD_POSE = {
    0: {"coxia": 0, "femur": 0, "tibia": 0, "name": "right-middle", "id": 0},
    1: {"coxia": 0, "femur": 0, "tibia": 0, "name": "right-front", "id": 1},
    2: {"coxia": 0, "femur": 0, "tibia": 0, "name": "left-front", "id": 2},
    3: {"coxia": 0, "femur": 0, "tibia": 0, "name": "left-middle", "id": 3},
    4: {"coxia": 0, "femur": 0, "tibia": 0, "name": "left-back", "id": 4},
    5: {"coxia": 0, "femur": 0, "tibia": 0, "name": "right-back", "id": 5},
}