gazebo-yarp-plugins
Gazebo Plugins exposing YARP interfaces.
Loading...
Searching...
No Matches
GazeboYarpPlugins::LinkAttacherServer Class Reference

#include <LinkAttacherServer.h>

Inheritance diagram for GazeboYarpPlugins::LinkAttacherServer:
Collaboration diagram for GazeboYarpPlugins::LinkAttacherServer:

Public Member Functions

 LinkAttacherServer ()
 
virtual bool enableGravity (const std::string &model_name, const bool enable)
 Enable/disables gravity for a model.
 
virtual bool attachUnscoped (const std::string &model_name, const std::string &model_link_name, const std::string &robot_name, const std::string &robot_link_name)
 Attach any link of the models spawned in gazebo to a link of the robot using a fixed joint.
 
virtual bool detachUnscoped (const std::string &model_name, const std::string &model_link_name)
 Detach the model link which was previously attached to the robot link through a fixed joint.
 
virtual std::vector< std::string > help (const std::string &functionName="--all")
 
bool read (yarp::os::ConnectionReader &connection) override
 
 LinkAttacherServer ()
 
virtual bool enableGravity (const std::string &model_name, const bool enable)
 Enable/disables gravity for a model.
 
virtual bool attachUnscoped (const std::string &model_name, const std::string &model_link_name, const std::string &robot_name, const std::string &robot_link_name)
 Attach any link of the models spawned in gazebo to a link of the robot using a fixed joint.
 
virtual bool detachUnscoped (const std::string &model_name, const std::string &model_link_name)
 Detach the model link which was previously attached to the robot link through a fixed joint.
 
virtual std::vector< std::string > help (const std::string &functionName="--all")
 
bool read (yarp::os::ConnectionReader &connection) override
 

Constructor & Destructor Documentation

◆ LinkAttacherServer() [1/2]

GazeboYarpPlugins::LinkAttacherServer::LinkAttacherServer ( )

◆ LinkAttacherServer() [2/2]

GazeboYarpPlugins::LinkAttacherServer::LinkAttacherServer ( )

Member Function Documentation

◆ enableGravity() [1/2]

bool GazeboYarpPlugins::LinkAttacherServer::enableGravity ( const std::string & model_name,
const bool enable )
virtual

Enable/disables gravity for a model.

Parameters
model_namename that identifies model in gazebo (that are already spawned in gazebo)
enable1 to enable gravity, 0 otherwise
Returns
returns true or false on success failure

Reimplemented in LinkAttacherServerImpl.

◆ attachUnscoped() [1/2]

bool GazeboYarpPlugins::LinkAttacherServer::attachUnscoped ( const std::string & model_name,
const std::string & model_link_name,
const std::string & robot_name,
const std::string & robot_link_name )
virtual

Attach any link of the models spawned in gazebo to a link of the robot using a fixed joint.

Parameters
model_namename that identifies model in gazebo (that are already spawned in gazebo)
model_link_namename of a the link in the model you want to attach to the robot
robot_namename of the robot
robot_link_namename of the robot link to which you want to attached the model link
Returns
true if success, false otherwise

Reimplemented in LinkAttacherServerImpl.

◆ detachUnscoped() [1/2]

bool GazeboYarpPlugins::LinkAttacherServer::detachUnscoped ( const std::string & model_name,
const std::string & model_link_name )
virtual

Detach the model link which was previously attached to the robot link through a fixed joint.

Parameters
model_namename that identifies model in gazebo (that are already spawned in gazebo)
model_link_namename of a the link in the model that is attached to the robot
Returns
true if success, false otherwise

Reimplemented in LinkAttacherServerImpl.

◆ help() [1/2]

std::vector< std::string > GazeboYarpPlugins::LinkAttacherServer::help ( const std::string & functionName = "--all")
virtual

◆ read() [1/2]

bool GazeboYarpPlugins::LinkAttacherServer::read ( yarp::os::ConnectionReader & connection)
override

◆ enableGravity() [2/2]

virtual bool GazeboYarpPlugins::LinkAttacherServer::enableGravity ( const std::string & model_name,
const bool enable )
virtual

Enable/disables gravity for a model.

Parameters
model_namename that identifies model in gazebo (that are already spawned in gazebo)
enable1 to enable gravity, 0 otherwise
Returns
returns true or false on success failure

Reimplemented in LinkAttacherServerImpl.

◆ attachUnscoped() [2/2]

virtual bool GazeboYarpPlugins::LinkAttacherServer::attachUnscoped ( const std::string & model_name,
const std::string & model_link_name,
const std::string & robot_name,
const std::string & robot_link_name )
virtual

Attach any link of the models spawned in gazebo to a link of the robot using a fixed joint.

Parameters
model_namename that identifies model in gazebo (that are already spawned in gazebo)
model_link_namename of a the link in the model you want to attach to the robot
robot_namename of the robot
robot_link_namename of the robot link to which you want to attached the model link
Returns
true if success, false otherwise

Reimplemented in LinkAttacherServerImpl.

◆ detachUnscoped() [2/2]

virtual bool GazeboYarpPlugins::LinkAttacherServer::detachUnscoped ( const std::string & model_name,
const std::string & model_link_name )
virtual

Detach the model link which was previously attached to the robot link through a fixed joint.

Parameters
model_namename that identifies model in gazebo (that are already spawned in gazebo)
model_link_namename of a the link in the model that is attached to the robot
Returns
true if success, false otherwise

Reimplemented in LinkAttacherServerImpl.

◆ help() [2/2]

virtual std::vector< std::string > GazeboYarpPlugins::LinkAttacherServer::help ( const std::string & functionName = "--all")
virtual

◆ read() [2/2]

bool GazeboYarpPlugins::LinkAttacherServer::read ( yarp::os::ConnectionReader & connection)
override

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