The geometry of a virtual, interactive spring.
This spring connects the point F (a point fixed on the body B – named by path) with an immovable target point T. Both points are measured and expressed in the world frame. This definition is for kinematics only: the spring's stiffness, damping, and resultant forces are not defined here.
#include <drake/geometry/meshcat.h>
Public Attributes | |
| std::string | path |
| The "/"-delimited Meshcat path of the object being dragged (e.g., "/drake/visualizer/my_model/my_body/my_geometry"). | |
| Eigen::Vector3d | body_point_in_world |
| The current position of F affixed to body B. | |
| Eigen::Vector3d | target_point_in_world |
| The current position of the fixed target point T. | |
| Eigen::Vector3d body_point_in_world |
The current position of F affixed to body B.
Note: in an interactive scenario with active dynamics, this position will change as the body B moves.
Note: This is expressed in Drake's z-up world frame (not Meshcat's y-up frame).
| std::string path |
| Eigen::Vector3d target_point_in_world |