User manual

old releases - latest release - trunk

RobotProxy Class Reference

Inheritance diagram for RobotProxy:
Collaboration diagram for RobotProxy:

List of all members.


Detailed Description

Proxy class used to add and manipulate robots.

Public Member Functions

 RobotProxy (const RobotProxyBase &p)
RobotProxyoperator= (const RobotProxyBase &p) throw ()
DelayedDispatch assign (const ObjectProxyBase &p)
DelayedDispatch assign (PeekabotClient &client, const std::string &path)
DelayedDispatch assign (const ObjectProxyBase &parent, const std::string &rel_path)
DelayedDispatch add (PeekabotClient &client, const std::string &path, const std::string &filename, NameConflictPolicy conflict_policy=AUTO_ENUMERATE_ON_CONFLICT)
 Add a robot to the scene.
DelayedDispatch add (const ObjectProxyBase &parent, const std::string &name, const std::string &filename, NameConflictPolicy conflict_policy=AUTO_ENUMERATE_ON_CONFLICT)
 Add a robot to the scene.
DelayedDispatch add (PeekabotClient &client, const std::string &path, NameConflictPolicy conflict_policy=AUTO_ENUMERATE_ON_CONFLICT)
 Add a robot to the scene.
DelayedDispatch add (const ObjectProxyBase &parent, const std::string &name, NameConflictPolicy conflict_policy=AUTO_ENUMERATE_ON_CONFLICT)
 Add a robot to the scene.

Member Function Documentation

DelayedDispatch assign ( const ObjectProxyBase p  ) 

Upcast and assign from another proxy.

If the object pointed to by p is not of compatible type, the assignment will fail and subsequent operations performed on the proxy will fail.

DelayedDispatch assign ( PeekabotClient client,
const std::string &  path 
)

Assign the proxy to the object with the given path.

Parameters:
client The client to use for this proxy.
path The path of the object in the peeakbot scene.

DelayedDispatch assign ( const ObjectProxyBase parent,
const std::string &  rel_path 
)

Assign the proxy to the object with the given parent and name.

Parameters:
parent The parent of the object referred to by name.
rel_path The path of the object, relative the parent object, to assign this proxy to.

DelayedDispatch add ( PeekabotClient client,
const std::string &  path,
const std::string &  filename,
NameConflictPolicy  conflict_policy = AUTO_ENUMERATE_ON_CONFLICT 
)

Add a robot to the scene.

Adds a robot to the scene at the given path and assigns the proxy to point to it. If an object already exists at the given path the outcome is governed by conflict_policy.

The robot file to load must reside on the peekabot server, not the client.

Parameters:
path The path where the object will be added, including the name of the object.
filename The path to the robot definition file used to construct the robot.
conflict_policy Determines how name conflicts are handled.
Deprecated:
Deprecated in 0.5. Support will be removed in 0.6.

DelayedDispatch add ( const ObjectProxyBase parent,
const std::string &  name,
const std::string &  filename,
NameConflictPolicy  conflict_policy = AUTO_ENUMERATE_ON_CONFLICT 
)

Add a robot to the scene.

Adds a robot with the given name under the the object referred to by parent and assigns the proxy to point to it. If an object already exists at the given path the outcome is governed by conflict_policy.

The robot file to load must reside on the peekabot server, not the client.

Parameters:
parent The parent under which the object will be added.
name The name to assign to the created object.
filename The path to the robot definition file used to construct the robot.
conflict_policy Determines how name conflicts are handled.
Deprecated:
Deprecated in 0.5. Support will be removed in 0.6.

DelayedDispatch add ( PeekabotClient client,
const std::string &  path,
NameConflictPolicy  conflict_policy = AUTO_ENUMERATE_ON_CONFLICT 
)

Add a robot to the scene.

Adds a robot to the scene at the given path and assigns the proxy to point to it. If an object already exists at the given path the outcome is governed by conflict_policy.

Parameters:
path The path where the object will be added, including the name of the object.
conflict_policy Determines how name conflicts are handled.

DelayedDispatch add ( const ObjectProxyBase parent,
const std::string &  name,
NameConflictPolicy  conflict_policy = AUTO_ENUMERATE_ON_CONFLICT 
)

Add a robot to the scene.

Adds a robot with the given name under the the object referred to by parent and assigns the proxy to point to it. If an object already exists at the given path the outcome is governed by conflict_policy.

Parameters:
parent The parent under which the object will be added.
name The name to assign to the created object.
conflict_policy Determines how name conflicts are handled.


The documentation for this class was generated from the following files: