Skip to main content
#include <rocky_joint_scalars.hpp> Inherits EntityScalars< rocky20::JointScalars >.

Public Member Functions

Detailed Description

When running a simulation an IRockyJointScalars object gives access to all joint scalars defined in the project. These joint scalars can be built-in scalars defined in the solver, or custom joint scalars defined by the current module or other active modules.

Member Function Documentation

add_scalar()

If a custom scalar variable was defined during the setup of the module, this method can be used to sum a value to the current one stored in it. Parameters

get_scalar()

If a custom scalar variable was defined during the setup of the module, the value currently stored can be accessed with this method. Parameters Returns The value currently stored in the scalar variable.

max_scalar()

If a custom scalar variable was defined during the setup of the module, this method can be used to make the scalar store the maximum of a set of values. A common use of this method is, for instance, to find the maximum among a set of values associated to the contacts of a particle. Parameters

set_scalar()

If a custom scalar variable was defined during the setup of the module, this method can be used to store a value on it. Parameters