gazebo-yarp-plugins
Gazebo Plugins exposing YARP interfaces.
|
#include <worldproxy.h>
Public Member Functions | |
WorldProxy () | |
~WorldProxy () | |
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, const bool collision_enable) |
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, const bool collision_enable) |
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, const bool collision_enable) |
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 | deleteObject (const std::string &id) |
Delete an object. | |
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, const bool collision_enable) |
Make a reference frame. | |
virtual bool | changeColor (const std::string &id, const GazeboYarpPlugins::Color &color) |
Change the color of 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 | 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) |
Load a model from file. | |
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. | |
void | attachWorldPointer (gazebo::physics::WorldPtr p) |
void | attachModelPointer (gazebo::physics::ModelPtr p) |
void | update (const gazebo::common::UpdateInfo &) |
void | waitForEngine () |
Wait for engine to perform update step. | |
void | signalEngine () |
Signal engine has performed one step. | |
bool | isSynchronous () |
Check if we have need to synchronize with the engine. | |
void | setSynchronousMode (bool f) |
Set if requests synchronize with the engine update or not. | |
gazebo::physics::LinkPtr | HELPER_getLinkInModel (gazebo::physics::ModelPtr model, std::string link_name) |
gazebo::physics::LinkPtr | HELPER_getLink (std::string full_scoped_link_name) |
bool | HELPER_hasEnding (std::string const &fullString, std::string const &ending) |
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 |
WorldProxy::WorldProxy | ( | ) |
WorldProxy::~WorldProxy | ( | ) |
|
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. MODEL1::link). 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 |
Delete an object.
id | string that identifies object in gazebo (returned after creation) |
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 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 |
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] |
timeout | (optional) time for the creation of the model [s] |
Reimplemented from GazeboYarpPlugins::WorldInterfaceServer.
|
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 fully scoped link (e.g. MODEL1::link) |
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 |
|
inline |
void WorldProxy::update | ( | const gazebo::common::UpdateInfo & | ) |
void WorldProxy::waitForEngine | ( | ) |
Wait for engine to perform update step.
void WorldProxy::signalEngine | ( | ) |
Signal engine has performed one step.
Use internally within update
|
inline |
Check if we have need to synchronize with the engine.
|
inline |
Set if requests synchronize with the engine update or not.
gazebo::physics::LinkPtr WorldProxy::HELPER_getLinkInModel | ( | gazebo::physics::ModelPtr | model, |
std::string | link_name ) |
gazebo::physics::LinkPtr WorldProxy::HELPER_getLink | ( | std::string | full_scoped_link_name | ) |
bool WorldProxy::HELPER_hasEnding | ( | std::string const & | fullString, |
std::string const & | ending ) |
|
virtualinherited |
|
virtualinherited |
|
overrideinherited |
|
overrideinherited |