Get an external servo controller

Hi, is there a way to ‘get’ an external servo contoller inside a python script of a robot. I want to manipulate the joints of the servo inside the script of the robot.

I am able to get an external robot like this:
app = getApplication()
robot_comp = app.findComponent(“Cartesian”)
robot = getRobot(robot_comp)

And then manipulate its joints like this:
robot.driveJoints(1000, 500)
robot.callSubRoutine(“Move Position 1”)

I’m looking for a method similar. Can someone help me please?


servo = robot_comp.findBehaviour(“Servo controller name goes here”)

1 Like

Thank you so much for the quick response! Exactly what i was looking for

1 Like