Skip to main content

Servo

The Servo node controls standard (position), continuous (velocity), and linear servos via PWM output channels.

Configuration​

servo:
enabled: true
sensors: ["gripper", "wrist", "elbow"]
gripper:
port: 14
type: "standard"
wrist:
port: 15
type: "continuous"
elbow:
port: 16
type: "linear"

Parameters​

ParameterDescription
portPWM output channel (range 0 – 21)
type"standard", "continuous", or "linear"

Command Ranges​

TypeInput RangeDescription
standard−150 to 150Target position in degrees
continuous−100 to 100Speed percentage
linear0 to 100Extension percentage

Topics​

Subscribed​

TopicTypeDescription
/<name>/cmdstd_msgs/Float64Target value (range depends on servo type)

Published​

TopicTypeDescriptionRate
/<name>/statestd_msgs/Float64Last commanded value20 Hz

Service​

Service name: /<name>/set_servo
Type: studica_control/SetData

Pass the target value in request.initparams.speed.