34 #ifndef URDF2GAZEBO_HH
35 #define URDF2GAZEBO_HH
37 #include <urdf_model/model.h>
38 #include <urdf_model/link.h>
50 #include "ode/rotation.h"
99 std::vector<TiXmlElement*>
blobs;
183 urdf::Vector3
parseVector3(TiXmlNode* key,
double scale = 1.0);
186 std::string
values2str(
unsigned int count,
const double *values);
189 std::string
vector32str(
const urdf::Vector3 vector);
192 void addKeyValue(TiXmlElement *elem,
const std::string& key,
193 const std::string &value);
197 const::gazebo::math::Pose& transform);
200 void printMass(boost::shared_ptr<urdf::Link> link);
203 void printMass(std::string link_name, dMass mass);
214 std::string link_name);
218 std::string link_name);
222 std::string link_name);
226 std::string joint_name);
240 boost::shared_ptr<urdf::Link> link);
256 std::string group_name,
257 boost::shared_ptr<urdf::Visual> visual);
261 std::string group_name,
262 boost::shared_ptr<urdf::Collision> collision);
271 boost::shared_ptr<urdf::Link> link);
276 std::vector<TiXmlElement*>::iterator blob_it,
277 boost::shared_ptr<urdf::Link> link, std::string plugin_name,
283 std::vector<TiXmlElement*>::iterator blob_it,
284 boost::shared_ptr<urdf::Link> link);
289 std::vector<TiXmlElement*>::iterator blob_it,
290 boost::shared_ptr<urdf::Link> link);
295 std::vector<TiXmlElement*>::iterator blob_it,
296 boost::shared_ptr<urdf::Link> link);
301 std::vector<TiXmlElement*>::iterator blob_it,
302 boost::shared_ptr<urdf::Link> link);
311 std::vector<TiXmlElement*>::iterator blob_it,
317 std::vector<TiXmlElement*>::iterator blob_it,
322 urdf::Pose transform_in_link_frame,
323 urdf::Pose parent_to_link_transform);
327 urdf::Pose parent_to_link_transform);
335 urdf::Pose parent_to_link_transform);
344 boost::shared_ptr<urdf::Geometry> geometry,
double *sizeVals);
352 boost::shared_ptr<const urdf::Link> link,
357 boost::shared_ptr<const urdf::Link> link,
362 boost::shared_ptr<const urdf::Link> link);
366 boost::shared_ptr<const urdf::Link> link);
370 boost::shared_ptr<const urdf::Link> link);
374 boost::shared_ptr<const urdf::Link> link,
375 boost::shared_ptr<urdf::Collision> collision,
376 std::string old_link_name = std::string(
""));
380 boost::shared_ptr<const urdf::Link> link,
381 boost::shared_ptr<urdf::Visual> visual,
382 std::string old_link_name = std::string(
""));
386 boost::shared_ptr<const urdf::Link> link,
391 boost::shared_ptr<urdf::Geometry> geometry);
396 TiXmlDocument
initModelString(std::string urdf_str,
bool _enforce_limits);
400 private:
bool enforce_limits;
401 private:
bool reduce_fixed_joints;