gazebo-yarp-plugins
Gazebo Plugins exposing YARP interfaces.
|
#include <worldinterfaceserverimpl.h>
Public Member Functions | |
WorldInterfaceServerImpl () | |
~WorldInterfaceServerImpl () | |
virtual std::string | makeSphere (const double radius, const GazeboYarpPlugins::Pose &pose, const GazeboYarpPlugins::Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=0, const bool collision_enable=1) |
Make a shpere. | |
virtual std::string | makeBox (const double width, const double height, const double thickness, const GazeboYarpPlugins::Pose &pose, const GazeboYarpPlugins::Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=0, const bool collision_enable=1) |
Make a shpere. | |
virtual std::string | makeCylinder (const double radius, const double length, const GazeboYarpPlugins::Pose &pose, const GazeboYarpPlugins::Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=0, const bool collision_enable=1) |
Make a cylinder. | |
virtual bool | setPose (const std::string &id, const GazeboYarpPlugins::Pose &pose, const std::string &frame_name="") |
Set new object pose. | |
virtual GazeboYarpPlugins::Pose | getPose (const std::string &id, const std::string &frame_name="") |
Get 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 bool | loadModelFromFile (const std::string &filename) |
Load a model from file. | |
virtual std::string | loadModelFromFileWithPose (const std::string &filename, const GazeboYarpPlugins::Pose &pose, const std::string &object_name="", const double timeout=2.0) |
Load a model from file. | |
virtual std::string | makeFrame (const double size, const GazeboYarpPlugins::Pose &pose, const GazeboYarpPlugins::Color &color, const std::string &frame_name="", const std::string &object_name="", const bool gravity_enable=0, const bool collision_enable=1) |
Make a reference frame. | |
virtual bool | changeColor (const std::string &id, const GazeboYarpPlugins::Color &color) |
Change the color of an object. | |
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) |
Get 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. | |
void | attachWorldProxy (WorldProxy *p) |
virtual std::vector< std::string > | help (const std::string &functionName="--all") |
virtual std::vector< std::string > | help (const std::string &functionName="--all") |
bool | read (yarp::os::ConnectionReader &connection) override |
bool | read (yarp::os::ConnectionReader &connection) override |
WorldInterfaceServerImpl::WorldInterfaceServerImpl | ( | ) |
WorldInterfaceServerImpl::~WorldInterfaceServerImpl | ( | ) |
|
virtual |
Make a shpere.
radius | radius of the sphere [m] |
pose | pose of the sphere [m] |
color | color of the sphere |
Reimplemented from GazeboYarpPlugins::WorldInterfaceServer.
|
virtual |
Make a shpere.
width | box width [m] |
height | box height[m] |
thickness | box thickness [m] |
pose | pose of the box [m] |
color | color of the box |
Reimplemented from GazeboYarpPlugins::WorldInterfaceServer.
|
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 |
Reimplemented from GazeboYarpPlugins::WorldInterfaceServer.
|
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 from GazeboYarpPlugins::WorldInterfaceServer.
|
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. MODEL1::link). Otherwise, world it will be used. |
Reimplemented from GazeboYarpPlugins::WorldInterfaceServer.
|
virtual |
Enable/disables gravity for an object.
id | object id |
enable | 1 to enable gravity, 0 otherwise |
Reimplemented from GazeboYarpPlugins::WorldInterfaceServer.
|
virtual |
Enable/disables collision detection for an object.
id | object id |
enable | 1 to enable collision detection, 0 otherwise |
Reimplemented from GazeboYarpPlugins::WorldInterfaceServer.
|
virtual |
Load a model from file.
filename | string that specifies the filename of the model |
Reimplemented from GazeboYarpPlugins::WorldInterfaceServer.
|
virtual |
Load a model from file.
filename | string that specifies the filename of the model |
pose | pose to place the model at [m] |
object_name | (optional) assigns a name to the object. |
timeout | (optional) time for the creation of the model [s] |
Reimplemented from GazeboYarpPlugins::WorldInterfaceServer.
|
virtual |
Make a reference frame.
size | size of the frame [m] |
pose | pose of the frame [m] |
color | color of the frame |
Reimplemented from GazeboYarpPlugins::WorldInterfaceServer.
|
virtual |
Change the color of an object.
id | object id |
color | color of the frame |
Reimplemented from GazeboYarpPlugins::WorldInterfaceServer.
|
virtual |
Delete an object.
id | string that identifies object in gazebo (returned after creation) |
Reimplemented from GazeboYarpPlugins::WorldInterfaceServer.
|
virtual |
Delete all objects in the world.
Reimplemented from GazeboYarpPlugins::WorldInterfaceServer.
|
virtual |
List id of all objects that have been added to the world.
Reimplemented from GazeboYarpPlugins::WorldInterfaceServer.
|
virtual |
Get 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 from GazeboYarpPlugins::WorldInterfaceServer.
|
virtual |
Detach a previously attached object.
id | string that identifies object in gazebo (returned after creation) |
Reimplemented from GazeboYarpPlugins::WorldInterfaceServer.
|
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 from GazeboYarpPlugins::WorldInterfaceServer.
|
inline |
|
virtualinherited |
|
virtualinherited |
|
overrideinherited |
|
overrideinherited |