Skip to content

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.

xml
<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 ​

cpp
std::string name

Name, unique among the thrusters of the system.

cpp
std::string link

Name of the URDF link the thruster is fixed to.

position ​

cpp
Vec<3> position

Position of the thruster in the link frame [m].

axis ​

cpp
Vec<3> axis

Direction of the thrust in the link frame. It is normalized when the thruster is set.

minThrust ​

cpp
double minThrust

Smallest thrust [N]. Commands below it are raised to it.

maxThrust ​

cpp
double maxThrust

Largest thrust [N]. Commands above it are lowered to it.

torqueCoefficient ​

cpp
double torqueCoefficient

Reaction 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.

RaiSim — physics for robotics and AI.