wbc
URDFTools.hpp
Go to the documentation of this file.
1#ifndef URDF_TOOLS_HPP
2#define URDF_TOOLS_HPP
3
4#include <string>
5#include <vector>
6#include <urdf_parser/urdf_parser.h>
7
8namespace base{
9class JointLimits;
10}
11
12namespace wbc {
13
15public:
17 static std::vector<std::string> jointNamesFromURDF(const std::string &filename);
18
20 static std::vector<std::string> jointNamesFromURDF(const urdf::ModelInterfaceSharedPtr& urdf_model);
21
23 static void jointLimitsFromURDF(const std::string& filename, base::JointLimits& limits);
24
26 static void jointLimitsFromURDF(const urdf::ModelInterfaceSharedPtr& urdf_model, base::JointLimits& limits);
27
29 static const std::string rootLinkFromURDF(const std::string &filename);
30
32 static const std::string robotNameFromURDF(const std::string &filename);
33
35 static void printTree(const std::string& filename);
36
38 static void printTree(urdf::LinkConstSharedPtr link, int level = 0);
39
41 static std::vector<std::string> addFloatingBaseToURDF(urdf::ModelInterfaceSharedPtr& robot_urdf, const std::string &world_frame_id = "world");
42
44 static bool applyJointBlacklist(urdf::ModelInterfaceSharedPtr& robot_urdf, const std::vector<std::string> &blacklist);
45};
46
47}
48
49#endif
Definition URDFTools.hpp:14
static const std::string robotNameFromURDF(const std::string &filename)
Definition URDFTools.cpp:91
static const std::string rootLinkFromURDF(const std::string &filename)
Definition URDFTools.cpp:83
static void jointLimitsFromURDF(const std::string &filename, base::JointLimits &limits)
Definition URDFTools.cpp:47
static void printTree(const std::string &filename)
Definition URDFTools.cpp:115
static bool applyJointBlacklist(urdf::ModelInterfaceSharedPtr &robot_urdf, const std::vector< std::string > &blacklist)
Definition URDFTools.cpp:240
static std::vector< std::string > addFloatingBaseToURDF(urdf::ModelInterfaceSharedPtr &robot_urdf, const std::string &world_frame_id="world")
Definition URDFTools.cpp:124
static std::vector< std::string > jointNamesFromURDF(const std::string &filename)
Definition URDFTools.cpp:11
Definition ControllerTools.cpp:6
Definition ContactsAccelerationConstraint.cpp:3