ANVEL 3.0 API Changes



  • Hi,

    Is there a list of all the API changes? We have python scripts written that run in 2.5 but we have had to make changes to get it to run in 3.0. For example we have this line:

    anv.AttachSensorToVehicle('API Camera', 'roamCam', Point3(2.140798206122, -0.013771706671, 0.386960816695), Euler(0,0,0), roamVeh.objectKey)

    We are getting this error(after we updated .id to .objectKey:

    AttributeError: 'Client' object has no attribute 'AttachSensorToVehicle'

    What should we be using instead? I cannot seem to find any documentation.

    Thank you.



  • @jmk479 said in ANVEL 3.0 API Changes:

    Hi,

    Is there a list of all the API changes? We have python scripts written that run in 2.5 but we have had to make changes to get it to run in 3.0. For example we have this line:

    anv.AttachSensorToVehicle('API Camera', 'roamCam', Point3(2.140798206122, -0.013771706671, 0.386960816695), Euler(0,0,0), roamVeh.objectKey)

    We are getting this error(after we updated .id to .objectKey:

    AttributeError: 'Client' object has no attribute 'AttachSensorToVehicle'

    What should we be using instead? I cannot seem to find any documentation.

    Thank you.

    @jmk479,

    Thanks for your question, and sorry about the confusion here. The AttachSensorToVehicle API call was removed in 3.0 in favor of a more generic approach using CreateObject to accomplish the same functionality with one API call. Note that the parent object must be specified when calling CreateObject. Please check out our updated example, here: https://wiki.anvelsim.com/3/index.php/Python_Example_Attached_Lidar.

    You can also use the AttachObjects call to attach already existing objects.

    Regards,
    ANVEL Support



  • @jmk479 ,

    Based on your feedback, we've published a new wiki page detailing the API changes, here: https://wiki.anvelsim.com/3/index.php/API_Changes_2.5_3.0

    Regards,
    ANVEL Support


Log in to reply
 

Looks like your connection to ANVEL Forum was lost, please wait while we try to reconnect.