#include <rocky_joint_scalars.hpp>
Inherits ScalarsModel< rocky20::JointScalarsController >.
Public Member Functions
Detailed Description
IRockyJointScalarsModel allows users to add new joint scalars, find joint scalars created in other modules or activate joint scalars known to Rocky, during the setup phase of a module. Joint scalars are special variables attached to the joints of flexible multi-element particles, which are able to store values per joint that are preserved between time iterations during a simulation.
Member Function Documentation
add()
double
for storing custom values during a simulation, preserving them between time iterations.
Parameters
Returns
The index that will uniquely identify the scalar variable during the execution of the simulation.
find()
Returns
The index that uniquely identifies the wanted scalar if it was actually found. It returns -1 otherwise.
reset()
set_dimension()
IRockyModel object.
Parameters