#include <srdf_writer.h>
Public Member Functions | |
void | createDisabledCollisionsXML (TiXmlElement *root) |
void | createEndEffectorsXML (TiXmlElement *root) |
void | createGroupStatesXML (TiXmlElement *root) |
void | createGroupsXML (TiXmlElement *root) |
void | createLinkSphereApproximationsXML (TiXmlElement *root) |
void | createPassiveJointsXML (TiXmlElement *root) |
void | createVirtualJointsXML (TiXmlElement *root) |
TiXmlDocument | generateSRDF () |
std::string | getSRDFString () |
void | initModel (const urdf::ModelInterface &robot_model, const srdf::Model &srdf_model) |
bool | initString (const urdf::ModelInterface &robot_model, const std::string &srdf_string) |
SRDFWriter () | |
void | updateSRDFModel (const urdf::ModelInterface &robot_model) |
bool | writeSRDF (const std::string &file_path) |
~SRDFWriter () | |
Public Attributes | |
std::vector < srdf::Model::DisabledCollision > | disabled_collisions_ |
std::vector < srdf::Model::EndEffector > | end_effectors_ |
std::vector < srdf::Model::GroupState > | group_states_ |
std::vector< srdf::Model::Group > | groups_ |
std::vector < srdf::Model::LinkSpheres > | link_sphere_approximations_ |
std::vector < srdf::Model::PassiveJoint > | passive_joints_ |
std::string | robot_name_ |
boost::shared_ptr< srdf::Model > | srdf_model_ |
std::vector < srdf::Model::VirtualJoint > | virtual_joints_ |
Definition at line 52 of file srdf_writer.h.
Constructor
Definition at line 47 of file srdf_writer.cpp.
Destructor
Definition at line 56 of file srdf_writer.cpp.
void moveit_setup_assistant::SRDFWriter::createDisabledCollisionsXML | ( | TiXmlElement * | root | ) |
Generate XML for SRDF disabled collisions of robot link pairs
root | - TinyXML root element to attach sub elements to |
Definition at line 303 of file srdf_writer.cpp.
void moveit_setup_assistant::SRDFWriter::createEndEffectorsXML | ( | TiXmlElement * | root | ) |
Generate XML for SRDF end effectors
root | - TinyXML root element to attach sub elements to |
Definition at line 365 of file srdf_writer.cpp.
void moveit_setup_assistant::SRDFWriter::createGroupStatesXML | ( | TiXmlElement * | root | ) |
Generate XML for SRDF group states of each joint's position
root | - TinyXML root element to attach sub elements to |
Definition at line 329 of file srdf_writer.cpp.
void moveit_setup_assistant::SRDFWriter::createGroupsXML | ( | TiXmlElement * | root | ) |
Generate XML for SRDF groups
root | - TinyXML root element to attach sub elements to |
Definition at line 192 of file srdf_writer.cpp.
void moveit_setup_assistant::SRDFWriter::createLinkSphereApproximationsXML | ( | TiXmlElement * | root | ) |
Generate XML for SRDF link collision spheres
root | - TinyXML root element to attach sub elements to |
Definition at line 263 of file srdf_writer.cpp.
void moveit_setup_assistant::SRDFWriter::createPassiveJointsXML | ( | TiXmlElement * | root | ) |
Generate XML for SRDF passive joints
root | - TinyXML root element to attach sub elements to |
Definition at line 416 of file srdf_writer.cpp.
void moveit_setup_assistant::SRDFWriter::createVirtualJointsXML | ( | TiXmlElement * | root | ) |
Generate XML for SRDF virtual joints
root | - TinyXML root element to attach sub elements to |
Definition at line 392 of file srdf_writer.cpp.
TiXmlDocument moveit_setup_assistant::SRDFWriter::generateSRDF | ( | ) |
Generate SRDF XML of all contained data
Definition at line 149 of file srdf_writer.cpp.
std::string moveit_setup_assistant::SRDFWriter::getSRDFString | ( | ) |
Get a string of a generated SRDF document
Definition at line 132 of file srdf_writer.cpp.
void moveit_setup_assistant::SRDFWriter::initModel | ( | const urdf::ModelInterface & | robot_model, |
const srdf::Model & | srdf_model | ||
) |
Initialize the SRDF writer with an exisiting SRDF model (optional)
urdf_model | a preloaded urdf model reference |
srdf_model | a preloaded srdf model reference |
Definition at line 80 of file srdf_writer.cpp.
bool moveit_setup_assistant::SRDFWriter::initString | ( | const urdf::ModelInterface & | robot_model, |
const std::string & | srdf_string | ||
) |
Initialize the SRDF writer with an exisiting SRDF file (optional)
urdf_model | a preloaded urdf model reference |
srdf_string | the text contents of an SRDF file |
Definition at line 63 of file srdf_writer.cpp.
void moveit_setup_assistant::SRDFWriter::updateSRDFModel | ( | const urdf::ModelInterface & | robot_model | ) |
Update the SRDF Model class using a new SRDF string
robot_model | a loaded URDF model |
Definition at line 104 of file srdf_writer.cpp.
bool moveit_setup_assistant::SRDFWriter::writeSRDF | ( | const std::string & | file_path | ) |
Generate SRDF XML of all contained data and save to file
file_path | - string path location to save SRDF |
Definition at line 120 of file srdf_writer.cpp.
std::vector<srdf::Model::DisabledCollision> moveit_setup_assistant::SRDFWriter::disabled_collisions_ |
Definition at line 173 of file srdf_writer.h.
Definition at line 171 of file srdf_writer.h.
Definition at line 169 of file srdf_writer.h.
Definition at line 168 of file srdf_writer.h.
std::vector<srdf::Model::LinkSpheres> moveit_setup_assistant::SRDFWriter::link_sphere_approximations_ |
Definition at line 172 of file srdf_writer.h.
Definition at line 174 of file srdf_writer.h.
std::string moveit_setup_assistant::SRDFWriter::robot_name_ |
Definition at line 180 of file srdf_writer.h.
boost::shared_ptr<srdf::Model> moveit_setup_assistant::SRDFWriter::srdf_model_ |
Definition at line 177 of file srdf_writer.h.
Definition at line 170 of file srdf_writer.h.