Derived from Motor.
RotationalMotor {
SFString name "rotational motor" # any string
SFFloat maxTorque 10 # [0, inf)
SFString sound "https://raw.githubusercontent.com/cyberbotics/webots/{{ webots.version.major }}/projects/default/worlds/sounds/rotational_motor.wav" # any string
}
A RotationalMotor node can be used to power either a HingeJoint or a Hinge2Joint to produce a rotational motion around the choosen axis.
-
The
namefield specifies the name identifier of the motor device. This the name to which thewb_robot_get_devicefunction refer. It defaults to"rotational motor". -
The
maxTorquefield specifies both the upper limit and the default value for the motor available torque and is expressed in newton meter [N⋅m]. The available torque is the torque that is available to the motor to perform the requested motions. When used in velocity control, this maximum torque is always applied (with the correct sign) until the target speed is reached, more details are available here. Thewb_motor_set_available_torquefunction can be used to change the available torque at run-time. The value ofmaxTorqueshould always be zero or positive (the default value is 10 N⋅m). A smallmaxTorquevalue may result in a motor being unable to move to the target position because of its weight or other external forces.