Draw the projection of the center of gravity on the ground plane #80
Open
Description
You'd need to update the following
1. The model VirtualHexapod
to have an attribute that stores this point
hexapod-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 two compute_orientation_properties
of the hexapod.ground_contact_solver
module.
2. In figure template, you should append a new point trace at the end of the data
list
The trace has the following format
{
"marker": {"color": INSERT_COLOR_HERE, "opacity": 1.0, "size": INSERT_SIZE_HERE},
"mode": "markers",
"name": "cog-projection",
"type": "scatter3d",
"x": [INSERT_COG_X_HERE],
"y": [INSERT_COG_Y_HERE,
"z": [0],
}
3. HexapodPlotter
could draw this point in the figure template