Class that creates a force vector visualization node.
More...
#include <WorldVisuals.h>
List of all members.
Public Member Functions |
| | ContactForceVisual (bool debug=false) |
| | Constructs a ContactForceVisual object.
|
|
| ~ContactForceVisual () |
| | Destructs the ContactForceVisual object.
|
| void | createForceVector (float lineLength, const Eigen::Vector3d &contactPoint, const Eigen::Vector3d &contactForce) |
| | Creates a force vector for the contact forces.
|
| void | update (float lineLength, const Eigen::Vector3d &contactPoint, const Eigen::Vector3d &contactForce) |
| | update the contact force visual
|
Protected Member Functions |
| osg::Matrix | _convertVectorToOsgTF (const Eigen::Vector3d &point, const Eigen::Vector3d &vector) |
| | Converts two Eigen::Vector3d's specifying the point of contact and direction of the force to an osg::Matrix.
|
Protected Attributes |
|
osgGolems::Line * | _contactForceLine |
| | Geometry creating the Line in OpenSceneGraph.
|
|
bool | _debug |
| | Whether or not to print out debug statements.
|
Detailed Description
Class that creates a force vector visualization node.
Constructor & Destructor Documentation
Constructs a ContactForceVisual object.
- Parameters:
-
| debug | Whether or not to print debug statements |
Member Function Documentation
Converts two Eigen::Vector3d's specifying the point of contact and direction of the force to an osg::Matrix.
- Parameters:
-
| point | Vector specifying the point of contact |
| vector | Vector specifying the direction of the force |
- Returns:
- osg::Matrix pointer which is the transform of the force vector
Creates a force vector for the contact forces.
- Parameters:
-
| lineLength | Length of the force vector |
| contactPoint | Vector specifying the point of the contact |
| contactForce | Force of the contact force |
- Returns:
- osg::MatrixTransform pointer to the TF containing the force vector node
update the contact force visual
- Parameters:
-
| lineLength | Length of the force vector |
| contactPoint | Vector specifying the point of the contact |
| contactForce | Force of the contact force |
- Returns:
- void
The documentation for this class was generated from the following files:
- /home/pete/myRepos/grip2/osgDart/WorldVisuals.h
- /home/pete/myRepos/grip2/osgDart/src/WorldVisuals.cpp