Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
Subscribe on Collision Detection State

Subscribe on Controller Collision Detection State

URL

/subscription

Method

POST

URL Params

None

Data Params

  • <identifier> = An identifier Required
  • resources = The subscription resource URI (The URI here is: '/rw/panel/coldetstate') Required
  • <identifier>-p = The priority associated with the subscription resource Required

Success Response

CREATED(201)

see HTTP Status codes

Example Response

<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Subscription Event</title>
</head>
<body>
<div class="state">
<a href="http://localhost/subscription/1" name="poll"></a>
<a href="ws://localhost:80/poll/1" rel="self"></a>
<a href="http://localhost/subscription/1?action=show" rel="action"></a>
<ul>
<li class="pnl-coldetstate-ev" title="coldetstate">
<a href="/rw/panel/coldetstate" rel="self"></a>
<span class="coldetstate">INIT</span>
</li>
</ul>
</div>
</body>
</html>

Error Response

BAD_REQUEST(400)

HTTP Errors, see HTTP Status codes

See Robot controller return codes

Sample Call

Subscribe on controller state changes

only low priority subscription(1-p=0) and medium priority subscription(1-p=1) are allowed on this resource

curl --digest -u "Default User":robotics -d "resources=1&1=/rw/panel/coldetstate&1-p=0" -X POST "http://localhost/subscription"

curl --digest -u "Default User":robotics -d "resources=1&1=/rw/panel/coldetstate&1-p=1" -X POST "http://localhost/subscription"

Notes

Not supported in bootserver mode