#include <srdf_writer.h>
Public Member Functions | |
void | createCollisionDefaultsXML (tinyxml2::XMLElement *root) |
void | createDisabledCollisionPairsXML (tinyxml2::XMLElement *root) |
void | createEndEffectorsXML (tinyxml2::XMLElement *root) |
void | createGroupStatesXML (tinyxml2::XMLElement *root) |
void | createGroupsXML (tinyxml2::XMLElement *root) |
void | createJointPropertiesXML (tinyxml2::XMLElement *root) |
void | createLinkSphereApproximationsXML (tinyxml2::XMLElement *root) |
void | createPassiveJointsXML (tinyxml2::XMLElement *root) |
void | createVirtualJointsXML (tinyxml2::XMLElement *root) |
void | generateSRDF (tinyxml2::XMLDocument &document) |
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< Model::CollisionPair > | disabled_collision_pairs_ |
std::vector< Model::CollisionPair > | enabled_collision_pairs_ |
std::vector< Model::EndEffector > | end_effectors_ |
std::vector< Model::GroupState > | group_states_ |
std::vector< Model::Group > | groups_ |
Model::JointPropertyMap | joint_properties_ |
std::vector< Model::LinkSpheres > | link_sphere_approximations_ |
std::vector< std::string > | no_default_collision_links_ |
std::vector< Model::PassiveJoint > | passive_joints_ |
std::string | robot_name_ |
ModelSharedPtr | srdf_model_ |
std::vector< Model::VirtualJoint > | virtual_joints_ |
Protected Member Functions | |
void | createCollisionPairsXML (tinyxml2::XMLElement *root, const char *tag_name, const std::vector< Model::CollisionPair > &pairs) |
Definition at line 83 of file srdf_writer.h.
srdf::SRDFWriter::SRDFWriter | ( | ) |
Constructor
Definition at line 59 of file srdf_writer.cpp.
srdf::SRDFWriter::~SRDFWriter | ( | ) |
Destructor
Definition at line 68 of file srdf_writer.cpp.
void srdf::SRDFWriter::createCollisionDefaultsXML | ( | tinyxml2::XMLElement * | root | ) |
Generate XML for SRDF collision defaults
root | - TinyXML root element to attach sub elements to |
Definition at line 329 of file srdf_writer.cpp.
|
protected |
Generate XML for SRDF disabled/enabled collisions of robot link pairs
root | - TinyXML root element to attach sub elements to |
Definition at line 355 of file srdf_writer.cpp.
void srdf::SRDFWriter::createDisabledCollisionPairsXML | ( | tinyxml2::XMLElement * | root | ) |
Generate XML for SRDF disabled collisions of robot link pairs
root | - TinyXML root element to attach sub elements to |
Definition at line 375 of file srdf_writer.cpp.
void srdf::SRDFWriter::createEndEffectorsXML | ( | tinyxml2::XMLElement * | root | ) |
Generate XML for SRDF end effectors
root | - TinyXML root element to attach sub elements to |
Definition at line 431 of file srdf_writer.cpp.
void srdf::SRDFWriter::createGroupStatesXML | ( | tinyxml2::XMLElement * | root | ) |
Generate XML for SRDF group states of each joint's position
root | - TinyXML root element to attach sub elements to |
Definition at line 393 of file srdf_writer.cpp.
void srdf::SRDFWriter::createGroupsXML | ( | tinyxml2::XMLElement * | root | ) |
Generate XML for SRDF groups
root | - TinyXML root element to attach sub elements to |
Definition at line 213 of file srdf_writer.cpp.
void srdf::SRDFWriter::createJointPropertiesXML | ( | tinyxml2::XMLElement * | root | ) |
Generate XML for SRDF joint properties
root | - TinyXML root element to attach sub elements to |
Definition at line 506 of file srdf_writer.cpp.
void srdf::SRDFWriter::createLinkSphereApproximationsXML | ( | tinyxml2::XMLElement * | root | ) |
Generate XML for SRDF link collision spheres
root | - TinyXML root element to attach sub elements to |
Definition at line 289 of file srdf_writer.cpp.
void srdf::SRDFWriter::createPassiveJointsXML | ( | tinyxml2::XMLElement * | root | ) |
Generate XML for SRDF passive joints
root | - TinyXML root element to attach sub elements to |
Definition at line 486 of file srdf_writer.cpp.
void srdf::SRDFWriter::createVirtualJointsXML | ( | tinyxml2::XMLElement * | root | ) |
Generate XML for SRDF virtual joints
root | - TinyXML root element to attach sub elements to |
Definition at line 459 of file srdf_writer.cpp.
void srdf::SRDFWriter::generateSRDF | ( | tinyxml2::XMLDocument & | document | ) |
Generate SRDF XML of all contained data
Definition at line 164 of file srdf_writer.cpp.
std::string srdf::SRDFWriter::getSRDFString | ( | ) |
Get a string of a generated SRDF document
Definition at line 147 of file srdf_writer.cpp.
void srdf::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 92 of file srdf_writer.cpp.
bool srdf::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 75 of file srdf_writer.cpp.
void srdf::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 119 of file srdf_writer.cpp.
bool srdf::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 134 of file srdf_writer.cpp.
std::vector<Model::CollisionPair> srdf::SRDFWriter::disabled_collision_pairs_ |
Definition at line 261 of file srdf_writer.h.
std::vector<Model::CollisionPair> srdf::SRDFWriter::enabled_collision_pairs_ |
Definition at line 262 of file srdf_writer.h.
std::vector<Model::EndEffector> srdf::SRDFWriter::end_effectors_ |
Definition at line 258 of file srdf_writer.h.
std::vector<Model::GroupState> srdf::SRDFWriter::group_states_ |
Definition at line 256 of file srdf_writer.h.
std::vector<Model::Group> srdf::SRDFWriter::groups_ |
Definition at line 255 of file srdf_writer.h.
Model::JointPropertyMap srdf::SRDFWriter::joint_properties_ |
Definition at line 264 of file srdf_writer.h.
std::vector<Model::LinkSpheres> srdf::SRDFWriter::link_sphere_approximations_ |
Definition at line 259 of file srdf_writer.h.
std::vector<std::string> srdf::SRDFWriter::no_default_collision_links_ |
Definition at line 260 of file srdf_writer.h.
std::vector<Model::PassiveJoint> srdf::SRDFWriter::passive_joints_ |
Definition at line 263 of file srdf_writer.h.
std::string srdf::SRDFWriter::robot_name_ |
Definition at line 270 of file srdf_writer.h.
ModelSharedPtr srdf::SRDFWriter::srdf_model_ |
Definition at line 267 of file srdf_writer.h.
std::vector<Model::VirtualJoint> srdf::SRDFWriter::virtual_joints_ |
Definition at line 257 of file srdf_writer.h.