71 auto ret =
m_sim_RPC.
makeSphere(
id, radius, pose, color, frame_name, gravity_enable, collision_enable);
82 auto ret =
m_sim_RPC.
makeBox(
id, width, height, thickness, pose, color, frame_name, gravity_enable, collision_enable);
93 auto ret =
m_sim_RPC.
makeCylinder(
id, radius, length, pose, color, frame_name, gravity_enable, collision_enable);
104 auto ret =
m_sim_RPC.
makeFrame(
id, size, pose, color, frame_name, gravity_enable, collision_enable);
171 auto ret =
m_sim_RPC.
makeModel(
id, filename, pose, frame_name, gravity_enable, collision_enable);
220 names = ret.listnames;
virtual yarp::dev::ReturnValue rename(const std::string &old_name, const std::string &new_name)
virtual yarp::dev::ReturnValue makeModel(const std::string &id_name, const std::string &filename, const yarp::sig::Pose6D &pose, const std::string &frame_name, const bool gravity_enable, const bool collision_enable)
virtual yarp::dev::ReturnValue deleteAll()
virtual yarp::dev::ReturnValue deleteObject(const std::string &id)
virtual yarp::dev::ReturnValue detach(const std::string &id)
virtual yarp::dev::ReturnValue makeBox(const std::string &id_name, const double width, const double height, const double thickness, const yarp::sig::Pose6D &pose, const yarp::sig::ColorRGB &color, const std::string &frame_name, const bool gravity_enable, const bool collision_enable)
virtual yarp::dev::ReturnValue makeActor(const std::string &id_name, const std::string &skinfile, const std::string &animfile, const yarp::sig::Pose6D &pose)
virtual yarp::dev::ReturnValue enableGravity(const std::string &id, const bool enable)
virtual yarp::dev::ReturnValue changeColor(const std::string &id, const yarp::sig::ColorRGB &color)
virtual yarp::dev::ReturnValue enableCollision(const std::string &id, const bool enable)
virtual getListReturnValue getList()
virtual yarp::dev::ReturnValue makeCylinder(const std::string &id_name, const double radius, const double length, const yarp::sig::Pose6D &pose, const yarp::sig::ColorRGB &color, const std::string &frame_name, const bool gravity_enable, const bool collision_enable)
virtual yarp::dev::ReturnValue setPose(const std::string &id, const yarp::sig::Pose6D &pose, const std::string &frame_name)
virtual yarp::dev::ReturnValue makeFrame(const std::string &id_name, const double size, const yarp::sig::Pose6D &pose, const yarp::sig::ColorRGB &color, const std::string &frame_name, const bool gravity_enable, const bool collision_enable)
virtual getPoseReturnValue getPose(const std::string &id, const std::string &frame_name)
virtual yarp::dev::ReturnValue makeSphere(const std::string &id_name, const double radius, const yarp::sig::Pose6D &pose, const yarp::sig::ColorRGB &color, const std::string &frame_name, const bool gravity_enable, const bool collision_enable)
virtual yarp::dev::ReturnValue attach(const std::string &id, const std::string &link_name)
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
yarp::dev::ReturnValue detach(std::string id) override
Detach a previously attached object.
yarp::dev::ReturnValue attach(std::string id, std::string link_name) override
Attach an object to a link of another object.
yarp::dev::ReturnValue makeSphere(std::string id, double radius, yarp::sig::Pose6D pose, yarp::sig::ColorRGB color, std::string frame_name, bool gravity_enable, bool collision_enable) override
Make a sphere.
yarp::dev::ReturnValue makeModel(std::string id, std::string filename, yarp::sig::Pose6D pose, std::string frame_name, bool gravity_enable, bool collision_enable) override
Create a model from a file.
yarp::dev::ReturnValue deleteObject(std::string id) override
Delete an object.
yarp::dev::ReturnValue makeActor(std::string id, std::string skin_filename, std::string animation_filename, yarp::sig::Pose6D pose) override
Create an actor.
yarp::dev::ReturnValue enableCollision(std::string id, bool enable) override
Enable/disables collision detection for an object.
yarp::dev::ReturnValue enableGravity(std::string id, bool enable) override
Enable/disables gravity for an object.
yarp::dev::ReturnValue makeBox(std::string id, double width, double height, double thickness, yarp::sig::Pose6D pose, yarp::sig::ColorRGB color, std::string frame_name, bool gravity_enable, bool collision_enable) override
Make a box.
yarp::dev::ReturnValue getList(std::vector< std::string > &names) override
List id of all objects that have been added to the world.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
yarp::dev::ReturnValue makeFrame(std::string id, double size, yarp::sig::Pose6D pose, yarp::sig::ColorRGB color, std::string frame_name, bool gravity_enable, bool collision_enable) override
Make a reference frame (a 3D model with 3 arrows representing the axes)
yarp::dev::ReturnValue rename(std::string old_name, std::string new_name) override
Change the names of an object.
yarp::dev::ReturnValue deleteAll() override
Delete all objects in the world.
yarp::dev::ReturnValue changeColor(std::string id, yarp::sig::ColorRGB color) override
Change the color of an object.
yarp::dev::ReturnValue makeCylinder(std::string id, double radius, double length, yarp::sig::Pose6D pose, yarp::sig::ColorRGB color, std::string frame_name, bool gravity_enable, bool collision_enable) override
Make a cylinder.
yarp::dev::ReturnValue setPose(std::string id, yarp::sig::Pose6D pose, std::string frame_name) override
Set new object pose.
ISimulatedWorldMsgs m_sim_RPC
bool close() override
Close the DeviceDriver.
yarp::dev::ReturnValue getPose(std::string id, yarp::sig::Pose6D &pose, std::string frame_name) override
Get object pose.
A mini-server for performing network communication in the background.
void close() override
Stop port activity.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
A base class for nested structures that can be searched.
bool attachAsClient(yarp::os::UnbufferedContactable &port)
Tag this WireLink as a client, sending data via the specified port.
yarp::os::WireLink & yarp()
Get YARP state associated with this object.
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.