raisim::ThrusterDefinition
struct · #include <raisim/object/ArticulatedSystem/Thruster.hpp>
A thruster of an articulated system: a propeller, a jet or any other source of a force that is fixed to a link. It is defined by a URDF <thruster> element or ArticulatedSystem::setThrusters().
The thrust T is set with ArticulatedSystem::setThrust() and holds until it is set again. Every step, the thruster pushes its link with the force T * axis at its position, and turns the link with the reaction torque torqueCoefficient * T * axis (a propeller's drag torque). The force and the torque act as if they were set with ArticulatedSystem::setExternalForce() and setExternalTorque() before the step.
<thruster name="rotor0" link="arm0" torque_coefficient="0.016">
<origin xyz="0.2 0 0.02" rpy="0 0 0"/>
<axis xyz="0 0 1"/>
<limit lower="0" upper="8"/>
</thruster>The axis is given in the frame of <origin>, like a joint axis. Both are optional: by default, the thruster sits at the link origin and pushes along the link's +z.
Public attributes
name
std::string nameName, unique among the thrusters of the system.
link
std::string linkName of the URDF link the thruster is fixed to.
position
Vec<3> positionPosition of the thruster in the link frame [m].
axis
Vec<3> axisDirection of the thrust in the link frame. It is normalized when the thruster is set.
minThrust
double minThrustSmallest thrust [N]. Commands below it are raised to it.
maxThrust
double maxThrustLargest thrust [N]. Commands above it are lowered to it.
torqueCoefficient
double torqueCoefficientReaction torque about the axis per newton of thrust [N m / N]. A positive coefficient turns the link counter-clockwise about +axis. Propellers that spin in opposite directions have opposite signs.