RobotStudio event

Retreiving a wobj definition from Robot Web Services

Options
Does anyone know how to get the wobj definition from the REST API? More precisely: what REST URL gives me the x,y,z,q1,q2,q3,q4 values of a certain wobj that is loaded in the controller?

Scenario:
-I load a RAPID program with a wobj: 'WobjTable' for example
-I adjust this wobj with the flexpendant and the 3 point method
-Now I would like to retreive this new wobj definition from the Robot Web Services REST API

I was looking under
/rw/rapid/ 
but couldn't find it there so far..


Comments

  • Humphrey
    Options
    Ok, apparently there is no function to do this directly, however you can get it by searching through the module text:

    First loop over all modules:
    /rw/rapid/modules?task=T_ROB1
    then search for the wobjdata definitions:
    /rw/rapid/modules/PUT_MODULENAME_HERE?task=T_ROB1&startrow=0&startcol=0&text=wobjdata
    then with the results you can get the actual text where the wobj is defined:
    /rw/rapid/modules/PUT_MODULENAME_HERE?task=T_ROB1&startrow=PUT_RESULTS_HERE&startcol=PUT_RESULTS_HERE&endrow=PUT_RESULTS_HERE&endcol=PUT_RESULTS_HERE<br>