chromapi 1.0.0__tar.gz → 1.0.2__tar.gz

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.
Files changed (224) hide show
  1. {chromapi-1.0.0/src/chromapi.egg-info → chromapi-1.0.2}/PKG-INFO +5 -3
  2. {chromapi-1.0.0 → chromapi-1.0.2}/README.md +4 -2
  3. {chromapi-1.0.0 → chromapi-1.0.2}/pyproject.toml +1 -1
  4. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/chromapi.py +9 -2
  5. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/input/pairing.py +21 -8
  6. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/kinematics/poses.py +4 -0
  7. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/media/led.py +4 -2
  8. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/utils/setup_motors.py +31 -7
  9. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/web/access.py +1 -1
  10. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/web/app.py +9 -5
  11. {chromapi-1.0.0 → chromapi-1.0.2/src/chromapi.egg-info}/PKG-INFO +5 -3
  12. {chromapi-1.0.0 → chromapi-1.0.2}/LICENSE +0 -0
  13. {chromapi-1.0.0 → chromapi-1.0.2}/MANIFEST.in +0 -0
  14. {chromapi-1.0.0 → chromapi-1.0.2}/setup.cfg +0 -0
  15. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/__init__.py +0 -0
  16. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/__main__.py +0 -0
  17. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/alert.wav +0 -0
  18. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/chromapi_scream.wav +0 -0
  19. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/confused.wav +0 -0
  20. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/dizzy.wav +0 -0
  21. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/excited.wav +0 -0
  22. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/greeting.wav +0 -0
  23. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/happy.wav +0 -0
  24. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/no.wav +0 -0
  25. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/purring.wav +0 -0
  26. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/sad.wav +0 -0
  27. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/scared.wav +0 -0
  28. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/sleepy.wav +0 -0
  29. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/squeak.wav +0 -0
  30. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/surprised.wav +0 -0
  31. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/thinking.wav +0 -0
  32. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/upset.wav +0 -0
  33. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/audio/yes.wav +0 -0
  34. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/favicon.ico +0 -0
  35. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/firmware/chromapi_stm32_core_v2.0.0.hex +0 -0
  36. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/firmware/flash.sh +0 -0
  37. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/README.md +0 -0
  38. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/angry.json +0 -0
  39. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/confused.json +0 -0
  40. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/dizzy.json +0 -0
  41. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/excited.json +0 -0
  42. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/greeting.json +0 -0
  43. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/happy.json +0 -0
  44. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/joy.json +0 -0
  45. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/kick.json +0 -0
  46. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/metadata.jsonl +0 -0
  47. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/no.json +0 -0
  48. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/purring.json +0 -0
  49. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/sad.json +0 -0
  50. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/scared.json +0 -0
  51. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/surprised.json +0 -0
  52. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/tired.json +0 -0
  53. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/assets/moves/yes.json +0 -0
  54. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/cli.py +0 -0
  55. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/config/config.yaml +0 -0
  56. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/estimation/__init__.py +0 -0
  57. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/estimation/attitude.py +0 -0
  58. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/hardware/__init__.py +0 -0
  59. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/hardware/battery.py +0 -0
  60. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/hardware/fan.py +0 -0
  61. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/hardware/motherboard_bridge.py +0 -0
  62. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/input/__init__.py +0 -0
  63. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/input/gamepad.py +0 -0
  64. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/kinematics/__init__.py +0 -0
  65. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/kinematics/kromatics.py +0 -0
  66. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/kinematics/topology.py +0 -0
  67. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/kinematics/types.py +0 -0
  68. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/locomotion/__init__.py +0 -0
  69. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/locomotion/balance.py +0 -0
  70. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/locomotion/gait.py +0 -0
  71. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/locomotion/recorded_move.py +0 -0
  72. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/media/__init__.py +0 -0
  73. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/media/audio.py +0 -0
  74. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/LICENSE +0 -0
  75. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/additional.xml +0 -0
  76. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/18650_li_ion_battery.msh +0 -0
  77. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/18650_li_ion_battery.part +0 -0
  78. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/battery_holder.msh +0 -0
  79. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/battery_holder.part +0 -0
  80. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/camera_imx219_d160.msh +0 -0
  81. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/camera_imx219_d160.part +0 -0
  82. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/chromapi_logo.msh +0 -0
  83. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/chromapi_logo.part +0 -0
  84. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/chromapi_logo_circle.msh +0 -0
  85. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/chromapi_logo_inner.msh +0 -0
  86. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/chromapi_logo_outer.msh +0 -0
  87. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/chromapi_motherboard.msh +0 -0
  88. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/chromapi_motherboard.part +0 -0
  89. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/composant2_1__corps1.msh +0 -0
  90. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/composant2_1__corps1.part +0 -0
  91. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/composant3_1__corps1.msh +0 -0
  92. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/composant3_1__corps1.part +0 -0
  93. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/composant4_1__corps1.msh +0 -0
  94. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/composant4_1__corps1.part +0 -0
  95. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/connector_f_1__corps1.msh +0 -0
  96. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/connector_f_1__corps1.part +0 -0
  97. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/connector_f_1__corps1_1.msh +0 -0
  98. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/connector_f_1__corps1_1.part +0 -0
  99. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/corps14.msh +0 -0
  100. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/corps14.part +0 -0
  101. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/fan_nf_a4x10.msh +0 -0
  102. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/fan_nf_a4x10.part +0 -0
  103. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/foot.msh +0 -0
  104. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/foot.part +0 -0
  105. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/left_coxa.msh +0 -0
  106. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/left_coxa.part +0 -0
  107. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/left_femur.msh +0 -0
  108. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/left_femur.part +0 -0
  109. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/left_tibia.msh +0 -0
  110. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/left_tibia.part +0 -0
  111. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/microswitch.msh +0 -0
  112. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/microswitch.part +0 -0
  113. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/power_switch.msh +0 -0
  114. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/power_switch.part +0 -0
  115. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/raspberry_pi_4_model_b.msh +0 -0
  116. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/raspberry_pi_4_model_b.part +0 -0
  117. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/right_coxa.msh +0 -0
  118. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/right_coxa.part +0 -0
  119. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/right_femur.msh +0 -0
  120. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/right_femur.part +0 -0
  121. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/right_tibia.msh +0 -0
  122. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/right_tibia.part +0 -0
  123. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/robot_case_bottom.msh +0 -0
  124. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/robot_case_bottom.part +0 -0
  125. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/robot_case_top.msh +0 -0
  126. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/robot_case_top.part +0 -0
  127. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/rpi_battery_bracket.msh +0 -0
  128. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/rpi_battery_bracket.part +0 -0
  129. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/speaker.msh +0 -0
  130. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/speaker.part +0 -0
  131. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/vis_1__corps1.msh +0 -0
  132. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/vis_1__corps1.part +0 -0
  133. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/vis_1__corps1_1.msh +0 -0
  134. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/vis_1__corps1_1.part +0 -0
  135. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/vis_a_tete_tronconique_jis_b_1111_m3x4_h_acier_inoxydable_a2_standard_v1_1__corps1.msh +0 -0
  136. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/vis_a_tete_tronconique_jis_b_1111_m3x4_h_acier_inoxydable_a2_standard_v1_1__corps1.part +0 -0
  137. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/ws2812b_cob_pixel_ring_27mm.msh +0 -0
  138. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/assets/ws2812b_cob_pixel_ring_27mm.part +0 -0
  139. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/config.json +0 -0
  140. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/robot.xml +0 -0
  141. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/mjcf/scene.xml +0 -0
  142. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/18650_li_ion_battery.part +0 -0
  143. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/18650_li_ion_battery.stl +0 -0
  144. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/battery_holder.part +0 -0
  145. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/battery_holder.stl +0 -0
  146. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/camera_imx219_d160.part +0 -0
  147. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/camera_imx219_d160.stl +0 -0
  148. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/chromapi_logo.part +0 -0
  149. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/chromapi_logo.stl +0 -0
  150. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/chromapi_logo_circle.stl +0 -0
  151. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/chromapi_logo_inner.stl +0 -0
  152. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/chromapi_logo_outer.stl +0 -0
  153. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/chromapi_motherboard.part +0 -0
  154. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/chromapi_motherboard.stl +0 -0
  155. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/composant2_1__corps1.part +0 -0
  156. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/composant2_1__corps1.stl +0 -0
  157. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/composant3_1__corps1.part +0 -0
  158. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/composant3_1__corps1.stl +0 -0
  159. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/composant4_1__corps1.part +0 -0
  160. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/composant4_1__corps1.stl +0 -0
  161. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/connector_f_1__corps1.part +0 -0
  162. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/connector_f_1__corps1.stl +0 -0
  163. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/connector_f_1__corps1_1.part +0 -0
  164. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/connector_f_1__corps1_1.stl +0 -0
  165. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/corps14.part +0 -0
  166. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/corps14.stl +0 -0
  167. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/fan_nf_a4x10.part +0 -0
  168. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/fan_nf_a4x10.stl +0 -0
  169. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/foot.part +0 -0
  170. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/foot.stl +0 -0
  171. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/left_coxa.part +0 -0
  172. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/left_coxa.stl +0 -0
  173. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/left_femur.part +0 -0
  174. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/left_femur.stl +0 -0
  175. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/left_tibia.part +0 -0
  176. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/left_tibia.stl +0 -0
  177. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/microswitch.part +0 -0
  178. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/microswitch.stl +0 -0
  179. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/power_switch.part +0 -0
  180. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/power_switch.stl +0 -0
  181. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/raspberry_pi_4_model_b.part +0 -0
  182. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/raspberry_pi_4_model_b.stl +0 -0
  183. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/right_coxa.part +0 -0
  184. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/right_coxa.stl +0 -0
  185. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/right_femur.part +0 -0
  186. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/right_femur.stl +0 -0
  187. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/right_tibia.part +0 -0
  188. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/right_tibia.stl +0 -0
  189. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/robot_case_bottom.part +0 -0
  190. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/robot_case_bottom.stl +0 -0
  191. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/robot_case_top.part +0 -0
  192. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/robot_case_top.stl +0 -0
  193. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/rpi_battery_bracket.part +0 -0
  194. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/rpi_battery_bracket.stl +0 -0
  195. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/speaker.part +0 -0
  196. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/speaker.stl +0 -0
  197. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/vis_1__corps1.part +0 -0
  198. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/vis_1__corps1.stl +0 -0
  199. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/vis_1__corps1_1.part +0 -0
  200. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/vis_1__corps1_1.stl +0 -0
  201. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/vis_a_tete_tronconique_jis_b_1111_m3x4_h_acier_inoxydable_a2_standard_v1_1__corps1.part +0 -0
  202. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/vis_a_tete_tronconique_jis_b_1111_m3x4_h_acier_inoxydable_a2_standard_v1_1__corps1.stl +0 -0
  203. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/ws2812b_cob_pixel_ring_27mm.part +0 -0
  204. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/assets/ws2812b_cob_pixel_ring_27mm.stl +0 -0
  205. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/config.json +0 -0
  206. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/model/urdf/robot.urdf +0 -0
  207. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/utils/calibrate_imu_mount.py +0 -0
  208. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/utils/calibrate_servo_centers.py +0 -0
  209. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/utils/flash.py +0 -0
  210. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/utils/health.py +0 -0
  211. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/utils/report.py +0 -0
  212. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/utils/sim_server.py +0 -0
  213. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/web/__init__.py +0 -0
  214. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/web/camera.py +0 -0
  215. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/web/static/fonts/varela-round.woff2 +0 -0
  216. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/web/static/index.html +0 -0
  217. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/web/static/logo.png +0 -0
  218. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/web/static/motherboard_front.png +0 -0
  219. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi/web/static/socket.io.min.js +0 -0
  220. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi.egg-info/SOURCES.txt +0 -0
  221. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi.egg-info/dependency_links.txt +0 -0
  222. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi.egg-info/entry_points.txt +0 -0
  223. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi.egg-info/requires.txt +0 -0
  224. {chromapi-1.0.0 → chromapi-1.0.2}/src/chromapi.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chromapi
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: High-level software for the Chromapi 12-DOF quadruped robot
5
5
  Author-email: Mowibox <ousmane.thiongane@outlook.com>
6
6
  License-Expression: Apache-2.0 AND CC-BY-NC-SA-4.0
@@ -71,6 +71,7 @@ Dynamic: license-file
71
71
  <a href="https://github.com/Mowibox/chromapi/actions/workflows/lint.yml"><img alt="CI: Linters" src="https://github.com/Mowibox/chromapi/actions/workflows/lint.yml/badge.svg"></a>
72
72
  <a href="https://github.com/Mowibox/chromapi/actions/workflows/pytest.yml"><img alt="CI: Unit Tests" src="https://github.com/Mowibox/chromapi/actions/workflows/pytest.yml/badge.svg"></a>
73
73
  <img alt="Issues" src="https://img.shields.io/github/issues/Mowibox/chromapi">
74
+ <a href="https://doi.org/10.5281/zenodo.24356978"><img alt="DOI" src="https://zenodo.org/badge/DOI/10.5281/zenodo.24356978.svg"></a>
74
75
  <img alt="Stars" src="https://img.shields.io/github/stars/Mowibox/chromapi?style=social">
75
76
  </p>
76
77
 
@@ -140,7 +141,7 @@ chromapi report # support report to attach to a message on Dis
140
141
 
141
142
  `chromapi --help` lists every command (`python -m chromapi` works too).
142
143
 
143
- `chromapi run` starts the robot and its web app, at `https://<robot-name>.local:5000` (or `https://<robot-ip>:5000`) from a phone or a PC on the same network.
144
+ `chromapi run` starts the robot and its web app, at `https://<robot-name>.local:5000` (or `https://<robot-ip>:5000`) from a phone or a PC on the same network. With `chromapi run --sim`, it runs on your PC at `https://localhost:5000`.
144
145
 
145
146
  The same code then runs on the robot with `Chromapi(backend="hardware")`, which talks to the motherboard over UART.
146
147
 
@@ -203,7 +204,8 @@ If you use Chromapi in your research, please cite it as below:
203
204
  month = nov,
204
205
  year = {2026},
205
206
  version = {1.0.0},
206
- url = {https://github.com/Mowibox/chromapi}
207
+ url = {https://github.com/Mowibox/chromapi},
208
+ doi = {10.5281/zenodo.24356978}
207
209
  howpublished = "\url{https://github.com/Mowibox/chromapi}",
208
210
  }
209
211
  ```
@@ -21,6 +21,7 @@
21
21
  <a href="https://github.com/Mowibox/chromapi/actions/workflows/lint.yml"><img alt="CI: Linters" src="https://github.com/Mowibox/chromapi/actions/workflows/lint.yml/badge.svg"></a>
22
22
  <a href="https://github.com/Mowibox/chromapi/actions/workflows/pytest.yml"><img alt="CI: Unit Tests" src="https://github.com/Mowibox/chromapi/actions/workflows/pytest.yml/badge.svg"></a>
23
23
  <img alt="Issues" src="https://img.shields.io/github/issues/Mowibox/chromapi">
24
+ <a href="https://doi.org/10.5281/zenodo.24356978"><img alt="DOI" src="https://zenodo.org/badge/DOI/10.5281/zenodo.24356978.svg"></a>
24
25
  <img alt="Stars" src="https://img.shields.io/github/stars/Mowibox/chromapi?style=social">
25
26
  </p>
26
27
 
@@ -90,7 +91,7 @@ chromapi report # support report to attach to a message on Dis
90
91
 
91
92
  `chromapi --help` lists every command (`python -m chromapi` works too).
92
93
 
93
- `chromapi run` starts the robot and its web app, at `https://<robot-name>.local:5000` (or `https://<robot-ip>:5000`) from a phone or a PC on the same network.
94
+ `chromapi run` starts the robot and its web app, at `https://<robot-name>.local:5000` (or `https://<robot-ip>:5000`) from a phone or a PC on the same network. With `chromapi run --sim`, it runs on your PC at `https://localhost:5000`.
94
95
 
95
96
  The same code then runs on the robot with `Chromapi(backend="hardware")`, which talks to the motherboard over UART.
96
97
 
@@ -153,7 +154,8 @@ If you use Chromapi in your research, please cite it as below:
153
154
  month = nov,
154
155
  year = {2026},
155
156
  version = {1.0.0},
156
- url = {https://github.com/Mowibox/chromapi}
157
+ url = {https://github.com/Mowibox/chromapi},
158
+ doi = {10.5281/zenodo.24356978}
157
159
  howpublished = "\url{https://github.com/Mowibox/chromapi}",
158
160
  }
159
161
  ```
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "chromapi"
7
- version = "1.0.0"
7
+ version = "1.0.2"
8
8
  authors = [{ name = "Mowibox", email = "ousmane.thiongane@outlook.com" }]
9
9
  description = "High-level software for the Chromapi 12-DOF quadruped robot"
10
10
  readme = "README.md"
@@ -40,6 +40,7 @@ from typing import (
40
40
  List,
41
41
  Optional,
42
42
  Sequence,
43
+ Set,
43
44
  Tuple,
44
45
  Union,
45
46
  )
@@ -198,6 +199,7 @@ class HardwareBackend(RobotBackend):
198
199
  self._bridge = BridgeClient(port=port, baudrate=baudrate)
199
200
  self.firmware_version: Optional[str] = None # "major.minor.patch", read by connect()
200
201
  self._misses: Dict[str, int] = {} # consecutive bus cycles without an answer, per joint
202
+ self._answered: Set[str] = set() # joints whose servo answered at least once
201
203
  self._missing_since: Dict[str, float] = {} # [s] joints reported missing, since when
202
204
  self._id_map: Dict[str, int] = dict(servo_config["id_map"])
203
205
  self._sign: Dict[str, int] = dict(servo_config["sign"])
@@ -289,7 +291,12 @@ class HardwareBackend(RobotBackend):
289
291
  joint = self._id_to_joint.get(servo["id"])
290
292
  if joint is None:
291
293
  continue
292
- state.joint_positions[joint] = self._steps_to_rad(joint, servo["pos"])
294
+ if servo["fresh"]:
295
+ self._answered.add(joint)
296
+ # A servo that never answered has no position (0 in the snapshot): leave it out, so that connect() holds
297
+ # it at ZERO_POSE (raw center) instead of driving a servo that appears on its ID to step 0.
298
+ if joint in self._answered:
299
+ state.joint_positions[joint] = self._steps_to_rad(joint, servo["pos"])
293
300
  # STS3215 "Present Speed" shares the position register's step resolution
294
301
  # (Feetech convention: raw units are steps/second).
295
302
  state.joint_velocities[joint] = (
@@ -1057,7 +1064,7 @@ class Chromapi:
1057
1064
  while time.monotonic() < deadline:
1058
1065
  time.sleep(_SETTLE_WINDOW_S)
1059
1066
  now = self.get_joint_positions()
1060
- if max(abs(now[j] - before[j]) for j in now) < _SETTLE_MOTION_RAD:
1067
+ if max((abs(now[j] - before[j]) for j in now if j in before), default=0.0) < _SETTLE_MOTION_RAD:
1061
1068
  return
1062
1069
  before = now
1063
1070
 
@@ -10,7 +10,7 @@ import argparse
10
10
  import re
11
11
  import subprocess
12
12
  import time
13
- from typing import List, Tuple
13
+ from typing import List, Set, Tuple
14
14
 
15
15
  SCAN_S = 20 # [s]
16
16
  STEP_TIMEOUT_S = 30 # [s]
@@ -45,18 +45,24 @@ def _reached(mac: str, fields: Tuple[str, ...]) -> bool:
45
45
  time.sleep(0.5)
46
46
 
47
47
 
48
- def unpaired_gamepads() -> List[Tuple[str, str]]:
49
- """(MAC, name) of the gamepads BlueZ knows of and has not paired yet."""
48
+ def gamepads(paired: bool = False) -> List[Tuple[str, str]]:
49
+ """(MAC, name) of the gamepads BlueZ knows of, unpaired ones (or paired ones)."""
50
50
  found = []
51
51
  for line in _ctl("devices")[1].splitlines():
52
52
  match = _DEVICE.match(line.strip())
53
53
  if match:
54
54
  info = _ctl("info", match[1])[1]
55
- if "Icon: input-gaming" in info and "Paired: no" in info:
55
+ if "Icon: input-gaming" in info and f"Paired: {'yes' if paired else 'no'}" in info:
56
56
  found.append((match[1], match[2]))
57
57
  return found
58
58
 
59
59
 
60
+ def _scan(scan_s: float) -> Set[str]:
61
+ """MACs of the devices seen advertising during the scan."""
62
+ output = _ctl("--timeout", f"{scan_s:.0f}", "scan", "on", timeout_s=scan_s + STEP_TIMEOUT_S)[1]
63
+ return set(re.findall(r"Device ([0-9A-F:]{17})", output))
64
+
65
+
60
66
  def main() -> int:
61
67
  """Pair the first gamepad found; the adapter is pairable only meanwhile."""
62
68
  try:
@@ -76,12 +82,19 @@ def _pair() -> int:
76
82
  print(f"Bluetooth does not start: {output.splitlines()[-1] if output else 'no adapter'}")
77
83
  return 1
78
84
  print(f"Looking for a controller in pairing mode for {args.scan:.0f} s...", flush=True)
79
- _ctl("--timeout", f"{args.scan:.0f}", "scan", "on", timeout_s=args.scan + STEP_TIMEOUT_S)
80
- gamepads = unpaired_gamepads()
81
- if not gamepads:
85
+ seen = _scan(args.scan)
86
+ # A paired pad advertising is in pairing mode: it was paired elsewhere since, so our key is stale
87
+ stale = [(mac, name) for mac, name in gamepads(paired=True) if mac in seen]
88
+ for mac, name in stale:
89
+ print(f"{name} ({mac}) is paired with an old key: forgetting it", flush=True)
90
+ _ctl("remove", mac)
91
+ if stale:
92
+ _scan(args.scan) # BlueZ forgot it: find it again
93
+ found = gamepads()
94
+ if not found:
82
95
  print("No controller found: hold its pair button until its light flashes fast, then try again")
83
96
  return 1
84
- mac, name = gamepads[0]
97
+ mac, name = found[0]
85
98
  for step, fields, open_s in STEPS:
86
99
  print(f"{step} {name} ({mac})", flush=True)
87
100
  keep_open = ("--agent", "NoInputNoOutput", "--timeout", f"{open_s:.0f}") if open_s else ()
@@ -12,6 +12,7 @@ from chromapi.kinematics.topology import (
12
12
  joint_name,
13
13
  )
14
14
 
15
+ #: Every joint at 0 [rad]: the zero of the URDF, legs straight.
15
16
  ZERO_POSE: Dict[str, float] = dict.fromkeys(JOINT_NAMES, 0.0) # [rad]
16
17
 
17
18
  def _symmetric_pose(hip_yaw: float, hip_pitch: float, knee_pitch: float) -> Dict[str, float]:
@@ -24,6 +25,9 @@ def _symmetric_pose(hip_yaw: float, hip_pitch: float, knee_pitch: float) -> Dict
24
25
  pose[joint_name(leg, suffix)] = value
25
26
  return pose
26
27
 
28
+ #: Joint angles [rad] of :meth:`~chromapi.chromapi.Chromapi.approach`.
27
29
  APPROACH_POSE: Dict[str, float] = _symmetric_pose(0.65, 1.2, -1.7) # [rad]
30
+ #: Joint angles [rad] of the stand reached by :meth:`~chromapi.chromapi.Chromapi.wake_up`.
28
31
  WAKE_UP_POSE: Dict[str, float] = _symmetric_pose(0.65, 0.65, -1.63) # [rad]
32
+ #: Joint angles [rad] of the crouch reached by :meth:`~chromapi.chromapi.Chromapi.rest`.
29
33
  REST_POSE: Dict[str, float] = _symmetric_pose(0.65, 1.42, -1.72) # [rad]
@@ -32,8 +32,10 @@ logger = logging.getLogger(__name__)
32
32
  Color = Tuple[int, int, int]
33
33
  RenderFn = Callable[[Any, float], None] # (robot, t [s]) -> sets the ring
34
34
 
35
- BRIGHTNESS = 0.35 # global scale: full brightness is blinding and draws ~1 A from the 5 V rail
36
- IDLE = (182, 5, 252) # violet-pink, Chromapi's default idle colour
35
+ #: Global scale of the ring: full brightness is blinding and draws ~1 A from the 5 V rail.
36
+ BRIGHTNESS = 0.35
37
+ #: Chromapi's default idle colour (R, G, B), violet-pink.
38
+ IDLE = (182, 5, 252)
37
39
  _idle: Color = IDLE
38
40
  _rainbow = False
39
41
  RAINBOW_IDLE_S = 4.0 # [s] per turn
@@ -12,7 +12,7 @@ import argparse
12
12
  import time
13
13
  from typing import Dict, List, Optional
14
14
 
15
- from chromapi.chromapi import load_config
15
+ from chromapi.chromapi import STS3215_CENTER_STEP, load_config
16
16
  from chromapi.hardware.motherboard_bridge import BridgeClient
17
17
 
18
18
  FACTORY_ID = 1
@@ -26,7 +26,12 @@ REG_D = 22
26
26
  REG_I = 23
27
27
  REG_MODE = 33
28
28
  REG_ACCEL = 41
29
+ REG_TORQUE = 40
30
+ REG_GOAL_POSITION = 42
29
31
  REG_LOCK = 55
32
+ REG_PRESENT_POSITION = 56
33
+ CENTER_TOLERANCE = 20 # [step]
34
+ CENTER_TIMEOUT_S = 2.0 # [s] a half turn takes ~0.6 s
30
35
  # Undocumented: acceleration cap of the internal motion profile.
31
36
  REG_MAX_ACCEL = 85
32
37
  MAX_ACCEL = 254
@@ -94,22 +99,26 @@ def configure_servo(bridge: BridgeClient, target_id: int, new_id: int) -> Dict[s
94
99
  else:
95
100
  print(f" {key:12} : {val}")
96
101
  print("="*40)
97
- print(" Max Accel only applies after a servo power cycle.")
98
102
  return wrong
99
103
 
104
+ def _answers(bridge: BridgeClient, servo_id: int, tries: int = 3) -> bool:
105
+ """Ping, again if a frame got lost on the bus."""
106
+ return any(bridge.ping_servo(servo_id) for _ in range(tries))
107
+
108
+
100
109
  def setup_one(bridge: BridgeClient, new_id: int, ids: List[int]) -> int:
101
110
  """Assembly step: the new servo (ID 1) becomes ``new_id``; steps go from the highest ID down, one servo at a time."""
102
111
  if new_id not in ids:
103
112
  print(f"[!] ID {new_id} is not one of the robot's servos {ids} (config servos.id_map).")
104
113
  return 1
105
- missing = [i for i in ids if i > new_id and not bridge.ping_servo(i)]
114
+ missing = [i for i in ids if i > new_id and not _answers(bridge, i)]
106
115
  if missing:
107
116
  print(f"[!] Servos set up before not answering: {missing}. Check the chain, or set them up again.")
108
117
  return 1
109
- if new_id != FACTORY_ID and bridge.ping_servo(new_id):
118
+ if new_id != FACTORY_ID and _answers(bridge, new_id):
110
119
  print(f"[*] A servo already answers at ID {new_id}: rewriting its registers.")
111
120
  target = new_id
112
- elif bridge.ping_servo(FACTORY_ID):
121
+ elif _answers(bridge, FACTORY_ID):
113
122
  target = FACTORY_ID
114
123
  else:
115
124
  print(f"[!] No servo answers at the factory ID {FACTORY_ID}: plug in the new servo.")
@@ -118,7 +127,22 @@ def setup_one(bridge: BridgeClient, new_id: int, ids: List[int]) -> int:
118
127
  if wrong:
119
128
  print(f"[!] Read back different from what was written (lost frame?): {wrong}. Run again.")
120
129
  return 1
121
- print(f"[SUCCESS] Servo {new_id} set up" + (": power-cycle the robot so that Max Accel applies."
130
+ # Held at its center (q=0) so that its horn and leg are mounted straight, whatever position it came in
131
+ # Wait for it: the web app takes the robot back right after, holding each servo where it reads it.
132
+ # Sent again on every poll: a lost frame on the bus would otherwise leave it where it was.
133
+ deadline = time.monotonic() + CENTER_TIMEOUT_S
134
+ while time.monotonic() < deadline:
135
+ bridge.write_servo_register(new_id, REG_GOAL_POSITION, 2, STS3215_CENTER_STEP)
136
+ bridge.write_servo_register(new_id, REG_TORQUE, 1, 1)
137
+ position = bridge.read_servo_register(new_id, REG_PRESENT_POSITION, 2)
138
+ if position is not None and abs(position - STS3215_CENTER_STEP) <= CENTER_TOLERANCE:
139
+ break
140
+ time.sleep(0.05)
141
+ else: # never left forcing against what blocks it: released, and the step fails
142
+ any(bridge.write_servo_register(new_id, REG_TORQUE, 1, 0) for _ in range(3))
143
+ print(f"[!] Servo {new_id} blocked before its center (reads {position}), released: free its leg and run again.")
144
+ return 1
145
+ print(f"[SUCCESS] Servo {new_id} set up" + (". Turn the robot off and on again for the changes to take effect."
122
146
  if new_id == min(ids) else "."))
123
147
  return 0
124
148
 
@@ -159,7 +183,7 @@ def main() -> int:
159
183
  print(f"[!] Read back different from what was written (lost frame?): {wrong}. Run again.")
160
184
  if missing or wrong:
161
185
  return 1
162
- print("\n[*] All servos configured. Power-cycle the robot so that Max Accel applies.")
186
+ print("\n[*] All servos configured. Turn the robot off and on again for the changes to take effect.")
163
187
  return 0
164
188
 
165
189
  try:
@@ -137,7 +137,7 @@ class Access:
137
137
 
138
138
  def tls_certificate(directory: Path = TLS_DIR) -> Optional[Tuple[str, str]]:
139
139
  """(certificate, key) paths of this robot's self-signed certificate, made on first use; None without openssl."""
140
- host = socket.gethostname()
140
+ host = socket.gethostname().split(".")[0] # DHCP may append a domain; mDNS uses the short name
141
141
  cert, key = directory / f"{host}.cert.pem", directory / f"{host}.key.pem"
142
142
  if cert.exists() and key.exists():
143
143
  return str(cert), str(key)
@@ -587,8 +587,10 @@ class Teleop:
587
587
  if ok and isinstance(self.robot.backend, HardwareBackend):
588
588
  self.robot.config = load_config()
589
589
  self.robot.backend.apply_calibration(self.robot.config)
590
- if self.robot.connect():
591
- self.robot.disable_motors() # the servo sweep leaves torque on
590
+ # The servo sweep leaves torque on. A setup step never: the set-up servos stay held at their center, even when
591
+ # a step fails or is cancelled (the step itself releases a servo blocked before its center).
592
+ if self.robot.connect() and not job.startswith("setup_servo_"):
593
+ self.robot.disable_motors()
592
594
  self.ring.start()
593
595
  last = log.splitlines()[-1] if log else ""
594
596
  outcome = "Cancelled" if cancelled else "Done" if ok else "Failed"
@@ -1091,9 +1093,11 @@ def main() -> int:
1091
1093
  name="chromapi-web", daemon=True,
1092
1094
  ).start()
1093
1095
  scheme = "https" if certificate else "http"
1094
- if args.host == "0.0.0.0":
1095
- logger.info("Web app on %s://%s.local:%d (or %s://%s:%d)", scheme, socket.gethostname(), args.port,
1096
- scheme, _lan_ip(), args.port)
1096
+ if args.sim:
1097
+ logger.info("Web app on %s://localhost:%d", scheme, args.port)
1098
+ elif args.host == "0.0.0.0":
1099
+ logger.info("Web app on %s://%s.local:%d (or %s://%s:%d)", scheme, socket.gethostname().split(".")[0],
1100
+ args.port, scheme, _lan_ip(), args.port)
1097
1101
  else:
1098
1102
  logger.info("Web app on %s://%s:%d", scheme, args.host, args.port)
1099
1103
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chromapi
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: High-level software for the Chromapi 12-DOF quadruped robot
5
5
  Author-email: Mowibox <ousmane.thiongane@outlook.com>
6
6
  License-Expression: Apache-2.0 AND CC-BY-NC-SA-4.0
@@ -71,6 +71,7 @@ Dynamic: license-file
71
71
  <a href="https://github.com/Mowibox/chromapi/actions/workflows/lint.yml"><img alt="CI: Linters" src="https://github.com/Mowibox/chromapi/actions/workflows/lint.yml/badge.svg"></a>
72
72
  <a href="https://github.com/Mowibox/chromapi/actions/workflows/pytest.yml"><img alt="CI: Unit Tests" src="https://github.com/Mowibox/chromapi/actions/workflows/pytest.yml/badge.svg"></a>
73
73
  <img alt="Issues" src="https://img.shields.io/github/issues/Mowibox/chromapi">
74
+ <a href="https://doi.org/10.5281/zenodo.24356978"><img alt="DOI" src="https://zenodo.org/badge/DOI/10.5281/zenodo.24356978.svg"></a>
74
75
  <img alt="Stars" src="https://img.shields.io/github/stars/Mowibox/chromapi?style=social">
75
76
  </p>
76
77
 
@@ -140,7 +141,7 @@ chromapi report # support report to attach to a message on Dis
140
141
 
141
142
  `chromapi --help` lists every command (`python -m chromapi` works too).
142
143
 
143
- `chromapi run` starts the robot and its web app, at `https://<robot-name>.local:5000` (or `https://<robot-ip>:5000`) from a phone or a PC on the same network.
144
+ `chromapi run` starts the robot and its web app, at `https://<robot-name>.local:5000` (or `https://<robot-ip>:5000`) from a phone or a PC on the same network. With `chromapi run --sim`, it runs on your PC at `https://localhost:5000`.
144
145
 
145
146
  The same code then runs on the robot with `Chromapi(backend="hardware")`, which talks to the motherboard over UART.
146
147
 
@@ -203,7 +204,8 @@ If you use Chromapi in your research, please cite it as below:
203
204
  month = nov,
204
205
  year = {2026},
205
206
  version = {1.0.0},
206
- url = {https://github.com/Mowibox/chromapi}
207
+ url = {https://github.com/Mowibox/chromapi},
208
+ doi = {10.5281/zenodo.24356978}
207
209
  howpublished = "\url{https://github.com/Mowibox/chromapi}",
208
210
  }
209
211
  ```
File without changes
File without changes
File without changes
File without changes