<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <!-- $Id: header.html 8799 2010-06-28 04:12:42Z jpgr87 $ --> <HEAD> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=utf-8"> <meta name="keywords" content="stage, robot, simulation, player, player/stage"> <link href="doxygen.css" rel="stylesheet" type="text/css"> <style type="text/css"> .floatright { float: right; margin: 0 0 1em 1em; } body { font-family: sans-serif; #font-family: Geneva, Verdana, Helvetica, Arial, sans-serif; background-color: #FFF; color:#000; } a:link { color: #A00; } a:visited { color: #800; } a { text-decoration: none; } a:hover { text-decoration: underline; } .timestamp { text-align:right; background-color: #DDD; font-size:75%;} h1 { font-size:160%; } h2 { font-size:110%; #color: #FFF; #background-color: #666; #padding:3px; } h3 { text-align:left; } img { border: 0; } ul.menu { position:relative; left:-2.5em; margin-bottom:0px; margin-top:0px; } ul.menu1 { position:relative; left:-2.1em; margin-bottom:0px; margin-top:0px; } li.menu { list-style-type: none; position:relative; #left:-0.5em; } #sidebar { position: absolute; left:0px; padding:2em; top:0em; width:12em;} #content { position: absolute; left:12em; top:0em; padding-left:3em; padding-right:3em; padding-bottom:2em; margin-top:1em; margin-right:2em; } div.box { background-color:#EEE; border: 1px solid #000; padding: 0.5ex 0.4em 0.5ex 0.6em; margin:1em; } div.title { font-weight:bold; background-color:#eee; margin-bottom:2px;} div.topbar { position: absolute; top:0px; left:9em; margin:1em; } </style> <TITLE>Player Manual</TITLE> </HEAD> <body> <div id="sidebar"> <h2 style="text-align:center;"> <a href="index.html"> <img width=140 src="http://playerstage.sourceforge.net/images/player_button_v3.png" alt="Player logo"><br></a> </h2> <div class="box"> <div class=title>Player</div> <ul class=menu> <li class=menu><a href="index.html">Frontpage</a> <li class=menu><a href="modules.html">Contents</a> </ul> </div> <div class="box"> <div class=title>User</div> <ul class=menu> <li class=menu><a href="install.html">Installation</a> <li class=menu><a href="start.html">Quick start</a> <li class=menu><a href="supported_hardware.html">Supported devices</a> <li class=menu><a href="group__tutorials.html">Tutorials</a> <li class=menu><a href="group__utils.html">Utilities</a> <li class=menu><a href="group__clientlibs.html">Client libraries</a> <li class=menu><a href="http://playerstage.sourceforge.net/wiki/Basic_FAQ">FAQ</a> <li class=menu><a href="help.html">Help</a> </ul> </div> <div class=box> <div class="title">Developer</div> <ul class=menu> <li class=menu><a href="architecture.html">Architecture</a> <li class=menu><a href="group__libplayercore.html">libplayercore</a> <ul class=menu1> <li class=menu><a href="group__interfaces.html">interfaces</a></li> </ul> <li class=menu><a href="group__libplayerdrivers.html">libplayerdrivers</a> <ul class=menu1> <li class=menu><a href="group__drivers.html">drivers</a></li> </ul> <li class=menu><a href="group__libplayercommon.html">libplayercommon</a> <li class=menu><a href="group__libplayerutils.html">libplayerutils</a> <li class=menu><a href="group__libplayersd.html">libplayersd</a> <li class=menu><a href="group__libplayertcp.html">libplayertcp</a> <li class=menu><a href="group__libplayerxdr.html">libplayerxdr</a> <li class=menu><a href="todo.html">TODO</a> </ul> </div> <div class=box> <!-- <a href="http://sourceforge.net"><img border=0 src="http://sourceforge.net/sflogo.php?group_id=42445&type=1"></a> --> <div class="title">Online</div> <a href="http://playerstage.sourceforge.net">Homepage</a><br> <a href="http://sourceforge.net/project/showfiles.php?group_id=42445">Download</a><br> <a href="http://sourceforge.net/projects/playerstage">Project</a><br> <a href="http://sourceforge.net/tracker/?group_id=42445">Bugs</a><br> <a href="http://sourceforge.net/mail/?group_id=42445">Help</a> </div> </div> <div id="content" > <!-- Generated by Doxygen 1.7.1 --> <div class="header"> <div class="summary"> <a href="#nested-classes">Classes</a> | <a href="#func-members">Functions</a> </div> <div class="headertitle"> <h1>position1d<br/> <small> [<a class="el" href="group__playerc__proxies.html">Device proxies</a>]</small> </h1> </div> </div> <div class="contents"> <p>The position1d proxy provides an interface to 1 DOF actuator such as a linear or rotational actuator. <a href="#_details">More...</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="nested-classes"></a> Classes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Position1d device data. <a href="structplayerc__position1d__t.html#_details">More...</a><br/></td></tr> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">PLAYERC_EXPORT <br class="typebreak"/> <a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__playerc__proxy__position1d.html#gae5f19ad22b3bd80ca526bb57af8e97d9">playerc_position1d_create</a> (<a class="el" href="struct__playerc__client__t.html">playerc_client_t</a> *client, int index)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a position1d device proxy. <a href="#gae5f19ad22b3bd80ca526bb57af8e97d9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">PLAYERC_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__playerc__proxy__position1d.html#gad759bcd30e76fe9a41472d98680805d3">playerc_position1d_destroy</a> (<a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a> *device)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destroy a position1d device proxy. <a href="#gad759bcd30e76fe9a41472d98680805d3"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga81111cc8b9f3bd0e141763e8a5392b59"></a><!-- doxytag: member="playerc_proxy_position1d::playerc_position1d_subscribe" ref="ga81111cc8b9f3bd0e141763e8a5392b59" args="(playerc_position1d_t *device, int access)" --> PLAYERC_EXPORT int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__playerc__proxy__position1d.html#ga81111cc8b9f3bd0e141763e8a5392b59">playerc_position1d_subscribe</a> (<a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a> *device, int access)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Subscribe to the position1d device. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gad99789bf53e604a085822399df7ce353"></a><!-- doxytag: member="playerc_proxy_position1d::playerc_position1d_unsubscribe" ref="gad99789bf53e604a085822399df7ce353" args="(playerc_position1d_t *device)" --> PLAYERC_EXPORT int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__playerc__proxy__position1d.html#gad99789bf53e604a085822399df7ce353">playerc_position1d_unsubscribe</a> (<a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a> *device)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Un-subscribe from the position1d device. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga7577b4dcb7f77596db442676bfce6d20"></a><!-- doxytag: member="playerc_proxy_position1d::playerc_position1d_enable" ref="ga7577b4dcb7f77596db442676bfce6d20" args="(playerc_position1d_t *device, int enable)" --> PLAYERC_EXPORT int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__playerc__proxy__position1d.html#ga7577b4dcb7f77596db442676bfce6d20">playerc_position1d_enable</a> (<a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a> *device, int enable)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Enable/disable the motors. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">PLAYERC_EXPORT int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__playerc__proxy__position1d.html#ga9d329fd512ccb16f50f130968e59cd1c">playerc_position1d_get_geom</a> (<a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a> *device)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the position1d geometry. <a href="#ga9d329fd512ccb16f50f130968e59cd1c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">PLAYERC_EXPORT int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__playerc__proxy__position1d.html#ga2389199b76aad955d6f53b96f65ba702">playerc_position1d_set_cmd_vel</a> (<a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a> *device, double vel, int state)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the target speed. <a href="#ga2389199b76aad955d6f53b96f65ba702"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">PLAYERC_EXPORT int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__playerc__proxy__position1d.html#ga0b15fd8ae79806ccf95b0d9c80f00f9a">playerc_position1d_set_cmd_pos</a> (<a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a> *device, double pos, int state)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the target position. <a href="#ga0b15fd8ae79806ccf95b0d9c80f00f9a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">PLAYERC_EXPORT int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__playerc__proxy__position1d.html#gacd8e574acafe4dbf838ac48a3834b29d">playerc_position1d_set_cmd_pos_with_vel</a> (<a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a> *device, double pos, double vel, int state)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the target position with movement velocity -. <a href="#gacd8e574acafe4dbf838ac48a3834b29d"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga39c43814ddb7e1df841f3c1e67c85f1c"></a><!-- doxytag: member="playerc_proxy_position1d::playerc_position1d_set_odom" ref="ga39c43814ddb7e1df841f3c1e67c85f1c" args="(playerc_position1d_t *device, double odom)" --> PLAYERC_EXPORT int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__playerc__proxy__position1d.html#ga39c43814ddb7e1df841f3c1e67c85f1c">playerc_position1d_set_odom</a> (<a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a> *device, double odom)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the odometry offset. <br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>The position1d proxy provides an interface to 1 DOF actuator such as a linear or rotational actuator. </p> <hr/><h2>Function Documentation</h2> <a class="anchor" id="gae5f19ad22b3bd80ca526bb57af8e97d9"></a><!-- doxytag: member="playerc.h::playerc_position1d_create" ref="gae5f19ad22b3bd80ca526bb57af8e97d9" args="(playerc_client_t *client, int index)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PLAYERC_EXPORT <a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a>* playerc_position1d_create </td> <td>(</td> <td class="paramtype"><a class="el" href="struct__playerc__client__t.html">playerc_client_t</a> * </td> <td class="paramname"> <em>client</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>index</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Create a position1d device proxy. </p> </div> </div> <a class="anchor" id="gad759bcd30e76fe9a41472d98680805d3"></a><!-- doxytag: member="playerc.h::playerc_position1d_destroy" ref="gad759bcd30e76fe9a41472d98680805d3" args="(playerc_position1d_t *device)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PLAYERC_EXPORT void playerc_position1d_destroy </td> <td>(</td> <td class="paramtype"><a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a> * </td> <td class="paramname"> <em>device</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Destroy a position1d device proxy. </p> </div> </div> <a class="anchor" id="ga9d329fd512ccb16f50f130968e59cd1c"></a><!-- doxytag: member="playerc.h::playerc_position1d_get_geom" ref="ga9d329fd512ccb16f50f130968e59cd1c" args="(playerc_position1d_t *device)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PLAYERC_EXPORT int playerc_position1d_get_geom </td> <td>(</td> <td class="paramtype"><a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a> * </td> <td class="paramname"> <em>device</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Get the position1d geometry. </p> <p>The writes the result into the proxy rather than returning it to the caller. </p> </div> </div> <a class="anchor" id="ga0b15fd8ae79806ccf95b0d9c80f00f9a"></a><!-- doxytag: member="playerc.h::playerc_position1d_set_cmd_pos" ref="ga0b15fd8ae79806ccf95b0d9c80f00f9a" args="(playerc_position1d_t *device, double pos, int state)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PLAYERC_EXPORT int playerc_position1d_set_cmd_pos </td> <td>(</td> <td class="paramtype"><a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a> * </td> <td class="paramname"> <em>device</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>pos</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>state</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the target position. </p> <p>-</p> <ul> <li>pos The position to move to </li> </ul> </div> </div> <a class="anchor" id="gacd8e574acafe4dbf838ac48a3834b29d"></a><!-- doxytag: member="playerc.h::playerc_position1d_set_cmd_pos_with_vel" ref="gacd8e574acafe4dbf838ac48a3834b29d" args="(playerc_position1d_t *device, double pos, double vel, int state)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PLAYERC_EXPORT int playerc_position1d_set_cmd_pos_with_vel </td> <td>(</td> <td class="paramtype"><a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a> * </td> <td class="paramname"> <em>device</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>pos</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>vel</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>state</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the target position with movement velocity -. </p> <ul> <li>pos The position to move to -</li> <li>vel The speed at which to move to the position </li> </ul> </div> </div> <a class="anchor" id="ga2389199b76aad955d6f53b96f65ba702"></a><!-- doxytag: member="playerc.h::playerc_position1d_set_cmd_vel" ref="ga2389199b76aad955d6f53b96f65ba702" args="(playerc_position1d_t *device, double vel, int state)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PLAYERC_EXPORT int playerc_position1d_set_cmd_vel </td> <td>(</td> <td class="paramtype"><a class="el" href="structplayerc__position1d__t.html">playerc_position1d_t</a> * </td> <td class="paramname"> <em>device</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>vel</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>state</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the target speed. </p> </div> </div> </div> <!-- render the modification time of the source file --> <div class="timestamp"> <hr> <table style="width:100%;"> <tr> <td style="text-align:left;"> Last updated 12 September 2005 21:38:45 <!-- <td style="text-align:right;"> <a href="http://validator.w3.org/check/referer"><img style="vertical-align:middle;border:0;width:88px;height:31px" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a> <a href="http://jigsaw.w3.org/css-validator/"> <img style="vertical-align:middle;border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"> </a> --> </tr> </table> </div> </tr> </table> </BODY> </HTML>