Derived from Motor.
LinearMotor {
SFString name "linear motor" # any string
SFFloat maxForce 10 # [0, inf)
SFString sound "https://raw.githubusercontent.com/cyberbotics/webots/{{ webots.version.major }}/projects/default/worlds/sounds/linear_motor.wav" # any string
}
A LinearMotor node can be used to power a SliderJoint and a Track.
-
The
namefield specifies the name identifier of the motor device. This the name to which thewb_robot_get_devicefunction refers. It defaults to"linear motor". -
The
maxForcefield specifies both the upper limit and the default value for the motor available force and is expressed in newton [N]. The available force is the force that is available to the motor to perform the requested motions. When used in velocity control, this maximum force is always applied (with the correct sign) until the target speed is reached, more details are available here. Thewb_motor_set_available_forcefunction can be used to change the available force at run-time. The value ofmaxForceshould always be zero or positive (the default value is 10 N). A smallmaxForcevalue may result in a motor being unable to move to the target position because of its weight or other external forces.