30 #include <boost/any.hpp>
39 RosNode::RosNode(std::shared_ptr<ros::NodeHandle> nh,
int numThreads) : nh_(nh), sp_(numThreads)
65 #if ROS_VERSION_MINIMUM(1, 14, 0) // if ROS version >= ROS_MELODIC
66 const std::shared_ptr<srdf::Model>& srdf_ = loader.
getSRDF() ? loader.
getSRDF() : std::shared_ptr<srdf::Model>(
new srdf::Model());
72 return robot_model::RobotModelPtr(
new robot_model::RobotModel(loader.
getURDF(), srdf_));
82 robot_model::RobotModelPtr model;
85 std::string robot_description_param;
86 GetParam(
"RobotDescription", robot_description_param);
87 ROS_INFO_STREAM(
"Using robot_description at " << robot_description_param);
92 std::string robot_description_param;
94 ROS_INFO_STREAM(
"Using robot_description at " << robot_description_param);
128 void Server::GetModel(
const std::string& path, robot_model::RobotModelPtr& model,
const std::string&
urdf,
const std::string&
srdf)