Community Forum
ANVEL Licensing Options


  • Is there a way to control Servo's through the API?

  • Yes, the servo can be controlled by modifying its properties using the API function SetProperty().

    For example, if you wish to manipulate the Arm1Servo that is defined in the treaded vehicle example, the property to set is "DesiredPos".

    # connect to ANVEL
    API = ConnectToANVEL('', 9094)  # default loopback configuration for the server
    myVeh = API.CreateObject('Treaded Robot', 'myRobot', 0, Point3(1,1,1), Euler(0, 0, 0), True)
    myServo= API.GetObjectDescriptorByTypeAndName("Servo","Arm1Servo")
    API.SetProperty(, "DesiredPos","0.2")  

    Thank you for your question.

    ANVEL Support Team