

How to write a rapid data by web services when robot controller in manual mode.

Tyler
✭
Hello,
I am trying to write a rapid data by using web services.
It works when the robot controller in auto mode.
but it can not work then the robot controller in manual mode. It needs to be granted. But I can not get the granted by web services.
What should I do?
I am trying to write a rapid data by using web services.
It works when the robot controller in auto mode.
but it can not work then the robot controller in manual mode. It needs to be granted. But I can not get the granted by web services.
What should I do?
Tagged:
0
Best Answer
-
Alright, a collegue found something.
Before requesting mastership, you have to invoke RMMP. Read more here:
http://developercenter.robotstudio.com/blobproxy/devcenter/Robot_Web_Services/html/users_rmmp_resource_operation_page.html
RMMP stands for Request Manual Mode Privileges.
So,
Step 1: Request RMMP while the controller is in Manual mode, read more in the link above:
Example call: curl (-d "privilege=modify" -X POST "http://localhost/users/rmmp"
Step 2: Grant RMMP via the FlexPendant (hurry, the popup disappears really fast).
Step 3: Request Mastership (all domains, or specific doman, for example RAPID), read more here:
http://developercenter.robotstudio.com/blobproxy/devcenter/Robot_Web_Services/html/msh_main_page.html
Example call: curl --digest -u "Default User":robotics -X POST "http://localhost/rw/mastership?action=request"
This should be enough.Post edited by Maxim Riabichev on—Maxim RiabichevPC Software Support Engineer1
Answers
-
Hello there,
You need to request for mastership: http://developercenter.robotstudio.com/blobproxy/devcenter/Robot_Web_Services/html/msh_main_page.html
This is a safety feature.
—Maxim RiabichevPC Software Support Engineer0 -
Maxim Riabichev said:Hello there,
You need to request for mastership: http://developercenter.robotstudio.com/blobproxy/devcenter/Robot_Web_Services/html/msh_main_page.html
This is a safety feature.
But when the robot is on manual mode, I will receive the message like this:
"<?xml version="1.0" encoding="UTF-8"?><html xmlns="http://www.w3.org/1999/xhtml"><head><title>rw</title><base href="http://localhost:80/" /></head><body><div class="status"><span class="code">-1073445862</span><span class="msg">rws_resource_mastership.cpp[165] ERROR: rws_component_mastership.cpp[54]: org_code: -2 new_code: 0xc004841a; code:-1073445862 icode:-1</span></div></body></html>
"
after I send the httppost of "http://localhost/rw/mastership?action=request".
Can you show me the example of how to get the mastership?
Thank you very much.0 -
Hello,
I'm looking into this and will get back as soon as I have new information / solution for you.—Maxim RiabichevPC Software Support Engineer0 -
Maxim Riabichev said:Alright, a collegue found something.
Before requesting mastership, you have to invoke RMMP. Read more here:
http://developercenter.robotstudio.com/blobproxy/devcenter/Robot_Web_Services/html/users_rmmp_resource_operation_page.html
Don't ask me what RMMP stands for.
So,
Step 1: Request RMMP while the controller is in Manual mode, read more in the link above:
Example call: curl (-d "privilege=modify" -X POST "http://localhost/users/rmmp"
Step 2: Grant RMMP via the FlexPendant (hurry, the popup disappears really fast).
Step 3: Request Mastership (all domains, or specific doman, for example RAPID), read more here:
http://developercenter.robotstudio.com/blobproxy/devcenter/Robot_Web_Services/html/msh_main_page.html
Example call: curl --digest -u "Default User":robotics -X POST "http://localhost/rw/mastership?action=request"
This should be enough.
It works!
Thank you very much.1 -
Hello. I still have the same error. After I get the RMMP invoked and ROBAPI client has access, I request Mastership by this call : curl --digest -u "Default User":robotics -X POST "http://localhost/rw/mastership?action=request"
and I receive this error :
415 Unsupported Media Type
<?xml version="1.0" encoding="UTF-8"?><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>rw</title> <base href="http://localhost:80/"/> </head> <body> <div class="status"> <span class="code">-1073414146</span> <span class="msg">d:\workspaces\robotsoftware\kernel\6.08.00.xx\areas\robapi2\components\rws_mastership\rws_resource_mastership.cpp[121] content type is not supported code:-1073414146 icode:415</span> </div> </body>
Can you help me with this error?0 -
Tyler said:Maxim Riabichev said:Alright, a collegue found something.
Before requesting mastership, you have to invoke RMMP. Read more here:
http://developercenter.robotstudio.com/blobproxy/devcenter/Robot_Web_Services/html/users_rmmp_resource_operation_page.html
Don't ask me what RMMP stands for.
So,
Step 1: Request RMMP while the controller is in Manual mode, read more in the link above:
Example call: curl (-d "privilege=modify" -X POST "http://localhost/users/rmmp"
Step 2: Grant RMMP via the FlexPendant (hurry, the popup disappears really fast).
Step 3: Request Mastership (all domains, or specific doman, for example RAPID), read more here:
http://developercenter.robotstudio.com/blobproxy/devcenter/Robot_Web_Services/html/msh_main_page.html
Example call: curl --digest -u "Default User":robotics -X POST "http://localhost/rw/mastership?action=request"
This should be enough.
It works!
Thank you very much.0
Categories
- All Categories
- 5.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings