-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draw the projection of the center of gravity on the ground plane #80
Comments
@mithi This has been open for a couple months now. Let me know when you think a "seasoned" contributor can take it on.....i would be interest! |
Sure go ahead, if you have some time to tinker around ... I I currently don't have time to explain things in detail but by inspecting the code I'm sure you'll be able to figure things out on your own... 😄 |
@mithi whaaatt? i like you detailed explanations, they get me thinking about clean code. in all seriousness, thank you. i only hope/expect can chime in when, and however you can. so no pressure. |
Hi @mithi. Apologies for the very very very long delay. I am finally done with school, can get back to OSS contributions, and I can start working on this issue before I start work again. Though, I notice you re-implemented this project in JS. So do you still need this feature here? |
Hey! Long time no see 😄 This issue is open, so if you'd like to work on it, you're more than welcome 🙂 |
@mithi a couple short questions:
|
hexapod-robot-simulator/hexapod/models.py Line 61 in 531fbb3
Hexagon has a property The projection of the center of gravity is just a point where the z coordinate is zero. IE
Thanks! |
You'd need to update the following
1. The model
VirtualHexapod
to have an attribute that stores this pointhexapod-robot-simulator/hexapod/models.py
Line 95 in 531fbb3
You can compute this point as outlined by the algorithm here, you should inject the point calculation to a different function and update the attribute of the
VirtualHexapod
when this is called in the twocompute_orientation_properties
of thehexapod.ground_contact_solver
module.hexapod-robot-simulator/hexapod/ground_contact_solver/helpers.py
Line 14 in 531fbb3
2. In figure template, you should append a new point trace at the end of the
data
listhexapod-robot-simulator/hexapod/templates/figure_template.py
Line 226 in 531fbb3
The trace has the following format
3.
HexapodPlotter
could draw this point in the figure templatehexapod-robot-simulator/hexapod/plotter.py
Line 14 in 531fbb3
The text was updated successfully, but these errors were encountered: