gazebo-yarp-plugins
Gazebo Plugins exposing YARP interfaces.
|
#include <WorldInterfaceServer.h>
Public Member Functions | |
WorldInterfaceServer () | |
virtual std::string | makeSphere (const double radius, const Pose &pose, const Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=false, const bool collision_enable=true) |
Make a sphere. | |
virtual std::string | makeBox (const double width, const double height, const double thickness, const Pose &pose, const Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=false, const bool collision_enable=true) |
Make a box. | |
virtual std::string | makeCylinder (const double radius, const double length, const Pose &pose, const Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=false, const bool collision_enable=true) |
Make a cylinder. | |
virtual std::string | makeFrame (const double size, const Pose &pose, const Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=false, const bool collision_enable=true) |
Make a reference frame. | |
virtual bool | changeColor (const std::string &id, const Color &color) |
Change the color of an object. | |
virtual bool | setPose (const std::string &id, const Pose &pose, const std::string &frame_name="") |
Set new object pose. | |
virtual bool | enableGravity (const std::string &id, const bool enable) |
Enable/disables gravity for an object. | |
virtual bool | enableCollision (const std::string &id, const bool enable) |
Enable/disables collision detection for an object. | |
virtual Pose | getPose (const std::string &id, const std::string &frame_name="") |
Get object pose. | |
virtual bool | loadModelFromFile (const std::string &filename) |
Load a model from file. | |
virtual std::string | loadModelFromFileWithPose (const std::string &filename, const Pose &pose, const std::string &object_name="", const double timeout=2.000000) |
Load a model from file. | |
virtual bool | deleteObject (const std::string &id) |
Delete an object. | |
virtual bool | deleteAll () |
Delete all objects in the world. | |
virtual std::vector< std::string > | getList () |
List id of all objects that have been added to the world. | |
virtual bool | attach (const std::string &id, const std::string &link_name) |
Attach an object to a link of the robot. | |
virtual bool | detach (const std::string &id) |
Detach a previously attached object. | |
virtual bool | rename (const std::string &old_name, const std::string &new_name) |
Change the names of an object. | |
virtual std::vector< std::string > | help (const std::string &functionName="--all") |
bool | read (yarp::os::ConnectionReader &connection) override |
WorldInterfaceServer () | |
virtual std::string | makeSphere (const double radius, const Pose &pose, const Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=false, const bool collision_enable=true) |
Make a sphere. | |
virtual std::string | makeBox (const double width, const double height, const double thickness, const Pose &pose, const Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=false, const bool collision_enable=true) |
Make a box. | |
virtual std::string | makeCylinder (const double radius, const double length, const Pose &pose, const Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=false, const bool collision_enable=true) |
Make a cylinder. | |
virtual std::string | makeFrame (const double size, const Pose &pose, const Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=false, const bool collision_enable=true) |
Make a reference frame. | |
virtual bool | changeColor (const std::string &id, const Color &color) |
Change the color of an object. | |
virtual bool | setPose (const std::string &id, const Pose &pose, const std::string &frame_name="") |
Set new object pose. | |
virtual bool | enableGravity (const std::string &id, const bool enable) |
Enable/disables gravity for an object. | |
virtual bool | enableCollision (const std::string &id, const bool enable) |
Enable/disables collision detection for an object. | |
virtual Pose | getPose (const std::string &id, const std::string &frame_name="") |
Get object pose. | |
virtual bool | loadModelFromFile (const std::string &filename) |
Load a model from file. | |
virtual std::string | loadModelFromFileWithPose (const std::string &filename, const Pose &pose, const std::string &object_name="", const double timeout=2.000000) |
Load a model from file. | |
virtual bool | deleteObject (const std::string &id) |
Delete an object. | |
virtual bool | deleteAll () |
Delete all objects in the world. | |
virtual std::vector< std::string > | getList () |
List id of all objects that have been added to the world. | |
virtual bool | attach (const std::string &id, const std::string &link_name) |
Attach an object to a link of the robot. | |
virtual bool | detach (const std::string &id) |
Detach a previously attached object. | |
virtual bool | rename (const std::string &old_name, const std::string &new_name) |
Change the names of an object. | |
virtual std::vector< std::string > | help (const std::string &functionName="--all") |
bool | read (yarp::os::ConnectionReader &connection) override |
GazeboYarpPlugins::WorldInterfaceServer::WorldInterfaceServer | ( | ) |
GazeboYarpPlugins::WorldInterfaceServer::WorldInterfaceServer | ( | ) |
|
virtual |
Make a sphere.
radius | radius of the sphere [m] |
pose | pose of the sphere [m] |
color | color of the sphere |
frame_name | (optional) is specified, the pose will be relative to the specified fully scoped frame (e.g. MODEL_ID::FRAME_ID). Otherwise, world it will be used. |
object_name | (optional) assigns a name to the object. |
gravity_enable | (optional) enables gravity (default false) |
collision_enable | (optional) enables collision (default true) |
Reimplemented in WorldProxy, and WorldInterfaceServerImpl.
|
virtual |
Make a box.
width | box width [m] |
height | box height[m] |
thickness | box thickness [m] |
pose | pose of the box [m] |
color | color of the box |
frame_name | (optional) is specified, the pose will be relative to the specified fully scoped frame (e.g. MODEL_ID::FRAME_ID). Otherwise, world it will be used. |
object_name | (optional) assigns a name to the object. |
gravity_enable | (optional) enables gravity (default false) |
collision_enable | (optional) enables collision (default true) |
Reimplemented in WorldProxy, and WorldInterfaceServerImpl.
|
virtual |
Make a cylinder.
radius | radius of the cylinder [m] |
length | length of the cylinder [m] |
pose | pose of the cylinder [m] |
color | color of the cylinder |
frame_name | (optional) is specified, the pose will be relative to the specified fully scoped frame (e.g. MODEL_ID::FRAME_ID). Otherwise, world it will be used. |
object_name | (optional) assigns a name to the object. |
gravity_enable | (optional) enables gravity (default false) |
collision_enable | (optional) enables collision (default true) |
Reimplemented in WorldProxy, and WorldInterfaceServerImpl.
|
virtual |
Make a reference frame.
size | size of the frame [m] |
pose | pose of the frame [m] |
color | color of the frame |
frame_name | (optional) is specified, the pose will be relative to the specified fully scoped frame (e.g. MODEL_ID::FRAME_ID). Otherwise, world it will be used. |
object_name | (optional) assigns a name to the object. |
gravity_enable | (optional) enables gravity (default false) |
collision_enable | (optional) enables collision (default true) |
Reimplemented in WorldProxy, and WorldInterfaceServerImpl.
|
virtual |
Change the color of an object.
id | object id |
color | color of the frame |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Set new object pose.
id | object id |
pose | new pose |
frame_name | (optional) is specified, the pose will be relative to the specified fully scoped frame (e.g. MODEL_ID::FRAME_ID). Otherwise, world it will be used. |
Reimplemented in WorldProxy, and WorldInterfaceServerImpl.
|
virtual |
Enable/disables gravity for an object.
id | object id |
enable | 1 to enable gravity, 0 otherwise |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Enable/disables collision detection for an object.
id | object id |
enable | 1 to enable collision detection, 0 otherwise |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Get object pose.
id | string that identifies object in gazebo (returned after creation) |
frame_name | (optional) is specified, the pose will be relative to the specified fully scoped frame (e.g. MODEL_ID::FRAME_ID). Otherwise, world it will be used. |
Reimplemented in WorldProxy, and WorldInterfaceServerImpl.
|
virtual |
Load a model from file.
filename | string that specifies the name of the model |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Load a model from file.
filename | string that specifies the name of the model |
pose | pose to place the model at: position (x,y,z), orientation (roll, pitch, yaw)] |
timeout | (optional) time for the creation of the model [s] |
Reimplemented in WorldProxy, and WorldInterfaceServerImpl.
|
virtual |
Delete an object.
id | string that identifies object in gazebo (returned after creation) |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Delete all objects in the world.
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
List id of all objects that have been added to the world.
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Attach an object to a link of the robot.
id | string that identifies object in gazebo (returned after creation) |
link_name | name of a link of the robot |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Detach a previously attached object.
id | string that identifies object in gazebo (returned after creation) |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Change the names of an object.
old_name | string that identifies object in gazebo |
new_name | string that will be used as new name |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
|
override |
|
virtual |
Make a sphere.
radius | radius of the sphere [m] |
pose | pose of the sphere [m] |
color | color of the sphere |
frame_name | (optional) is specified, the pose will be relative to the specified fully scoped frame (e.g. MODEL_ID::FRAME_ID). Otherwise, world it will be used. |
object_name | (optional) assigns a name to the object. |
gravity_enable | (optional) enables gravity (default false) |
collision_enable | (optional) enables collision (default true) |
Reimplemented in WorldProxy, and WorldInterfaceServerImpl.
|
virtual |
Make a box.
width | box width [m] |
height | box height[m] |
thickness | box thickness [m] |
pose | pose of the box [m] |
color | color of the box |
frame_name | (optional) is specified, the pose will be relative to the specified fully scoped frame (e.g. MODEL_ID::FRAME_ID). Otherwise, world it will be used. |
object_name | (optional) assigns a name to the object. |
gravity_enable | (optional) enables gravity (default false) |
collision_enable | (optional) enables collision (default true) |
Reimplemented in WorldProxy, and WorldInterfaceServerImpl.
|
virtual |
Make a cylinder.
radius | radius of the cylinder [m] |
length | length of the cylinder [m] |
pose | pose of the cylinder [m] |
color | color of the cylinder |
frame_name | (optional) is specified, the pose will be relative to the specified fully scoped frame (e.g. MODEL_ID::FRAME_ID). Otherwise, world it will be used. |
object_name | (optional) assigns a name to the object. |
gravity_enable | (optional) enables gravity (default false) |
collision_enable | (optional) enables collision (default true) |
Reimplemented in WorldProxy, and WorldInterfaceServerImpl.
|
virtual |
Make a reference frame.
size | size of the frame [m] |
pose | pose of the frame [m] |
color | color of the frame |
frame_name | (optional) is specified, the pose will be relative to the specified fully scoped frame (e.g. MODEL_ID::FRAME_ID). Otherwise, world it will be used. |
object_name | (optional) assigns a name to the object. |
gravity_enable | (optional) enables gravity (default false) |
collision_enable | (optional) enables collision (default true) |
Reimplemented in WorldProxy, and WorldInterfaceServerImpl.
|
virtual |
Change the color of an object.
id | object id |
color | color of the frame |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Set new object pose.
id | object id |
pose | new pose |
frame_name | (optional) is specified, the pose will be relative to the specified fully scoped frame (e.g. MODEL_ID::FRAME_ID). Otherwise, world it will be used. |
Reimplemented in WorldProxy, and WorldInterfaceServerImpl.
|
virtual |
Enable/disables gravity for an object.
id | object id |
enable | 1 to enable gravity, 0 otherwise |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Enable/disables collision detection for an object.
id | object id |
enable | 1 to enable collision detection, 0 otherwise |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Get object pose.
id | string that identifies object in gazebo (returned after creation) |
frame_name | (optional) is specified, the pose will be relative to the specified fully scoped frame (e.g. MODEL_ID::FRAME_ID). Otherwise, world it will be used. |
Reimplemented in WorldProxy, and WorldInterfaceServerImpl.
|
virtual |
Load a model from file.
filename | string that specifies the name of the model |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Load a model from file.
filename | string that specifies the name of the model |
pose | pose to place the model at: position (x,y,z), orientation (roll, pitch, yaw)] |
timeout | (optional) time for the creation of the model [s] |
Reimplemented in WorldProxy, and WorldInterfaceServerImpl.
|
virtual |
Delete an object.
id | string that identifies object in gazebo (returned after creation) |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Delete all objects in the world.
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
List id of all objects that have been added to the world.
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Attach an object to a link of the robot.
id | string that identifies object in gazebo (returned after creation) |
link_name | name of a link of the robot |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Detach a previously attached object.
id | string that identifies object in gazebo (returned after creation) |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
Change the names of an object.
old_name | string that identifies object in gazebo |
new_name | string that will be used as new name |
Reimplemented in WorldInterfaceServerImpl, and WorldProxy.
|
virtual |
|
override |