urdf ERROR

解决方法参见 “超级chopper” 的  “ 

树莓派3Raspbian-jessie编译安装ROS Indigo完整版

” http://blog.csdn.net/super_miao0/article/details/53571753

=> Processing catkin package: 'urdf'

==> Creating build directory: 'build_isolated/urdf'
==> Building with env: '/opt/ros/indigo/env.sh'
==> cmake /home/pi/ros_catkin_ws/src/robot_model/urdf -DCATKIN_DEVEL_PREFIX=/home/pi/ros_catkin_ws/devel_isolated/urdf -DCMAKE_INSTALL_PREFIX=/opt/ros/indigo -DCMAKE_BUILD_TYPE=Release -G Unix Makefiles in '/home/pi/ros_catkin_ws/build_isolated/urdf'
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   thread
--   chrono
--   system
--   date_time
--   atomic
-- Using CATKIN_DEVEL_PREFIX: /home/pi/ros_catkin_ws/devel_isolated/urdf
-- Using CMAKE_PREFIX_PATH: /opt/ros/indigo
-- This workspace overlays: /opt/ros/indigo
-- Found PythonInterp: /usr/bin/python (found version "2.7.9") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/pi/ros_catkin_ws/build_isolated/urdf/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.18
-- Found TinyXML: /usr/lib/arm-linux-gnueabihf/libtinyxml.so  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/ros_catkin_ws/build_isolated/urdf
==> make -j2 in '/home/pi/ros_catkin_ws/build_isolated/urdf'
Scanning dependencies of target urdf
[ 33%] Building CXX object CMakeFiles/urdf.dir/src/model.cpp.o
[ 66%] Building CXX object CMakeFiles/urdf.dir/src/rosconsole_bridge.cpp.o
In file included from /usr/local/include/urdf_model/joint.h:43:0,
                 from /usr/local/include/urdf_model/link.h:44,
                 from /usr/local/include/urdf_model/model.h:42,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/include/urdf/model.h:42,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:37:
/usr/local/include/urdf_model/pose.h: In member function ‘void urdf::Vector3::init(const string&)’:
/usr/local/include/urdf_model/pose.h:78:25: error: ‘stod’ is not a member of ‘std’
           xyz.push_back(std::stod(pieces[i]));
                         ^
In file included from /usr/local/include/urdf_model/joint.h:43:0,
                 from /usr/local/include/urdf_model/link.h:44,
                 from /usr/local/include/urdf_model/model.h:42,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/include/urdf/model.h:42,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:37:
/usr/local/include/urdf_model/pose.h:90:42: error: ‘to_string’ is not a member of ‘std’
       throw ParseError("Parser found " + std::to_string(xyz.size())  + " elements but 3 expected while parsing vector [" + vector_str + "]");
                                          ^
In file included from /usr/local/include/urdf_model/joint.h:44:0,
                 from /usr/local/include/urdf_model/link.h:44,
                 from /usr/local/include/urdf_model/model.h:42,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/include/urdf/model.h:42,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:37:
/usr/local/include/urdf_model/types.h: At global scope:
/usr/local/include/urdf_model/types.h:51:14: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 typedef std::shared_ptr<double> DoubleSharedPtr;
              ^
/usr/local/include/urdf_model/types.h:53:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Box);
 ^
/usr/local/include/urdf_model/types.h:53:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Box);
 ^
/usr/local/include/urdf_model/types.h:53:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Box);
 ^
/usr/local/include/urdf_model/types.h:54:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Collision);
 ^
/usr/local/include/urdf_model/types.h:54:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Collision);
 ^
/usr/local/include/urdf_model/types.h:54:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Collision);
 ^
/usr/local/include/urdf_model/types.h:55:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Cylinder);
 ^
/usr/local/include/urdf_model/types.h:55:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Cylinder);
 ^
/usr/local/include/urdf_model/types.h:55:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Cylinder);
 ^
/usr/local/include/urdf_model/types.h:56:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Geometry);
 ^
/usr/local/include/urdf_model/types.h:56:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Geometry);
 ^
/usr/local/include/urdf_model/types.h:56:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Geometry);
 ^
/usr/local/include/urdf_model/types.h:57:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Inertial);
 ^
/usr/local/include/urdf_model/types.h:57:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Inertial);
 ^
/usr/local/include/urdf_model/types.h:57:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Inertial);
 ^
/usr/local/include/urdf_model/types.h:58:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Joint);
 ^
/usr/local/include/urdf_model/types.h:58:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Joint);
 ^
/usr/local/include/urdf_model/types.h:58:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Joint);
 ^
/usr/local/include/urdf_model/types.h:59:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(JointCalibration);
 ^
/usr/local/include/urdf_model/types.h:59:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(JointCalibration);
 ^
/usr/local/include/urdf_model/types.h:59:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(JointCalibration);
 ^
/usr/local/include/urdf_model/types.h:60:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(JointDynamics);
 ^
/usr/local/include/urdf_model/types.h:60:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(JointDynamics);
 ^
/usr/local/include/urdf_model/types.h:60:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(JointDynamics);
 ^
/usr/local/include/urdf_model/types.h:61:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(JointLimits);
 ^
/usr/local/include/urdf_model/types.h:61:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(JointLimits);
 ^
/usr/local/include/urdf_model/types.h:61:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(JointLimits);
 ^
/usr/local/include/urdf_model/types.h:62:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(JointMimic);
 ^
/usr/local/include/urdf_model/types.h:62:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(JointMimic);
 ^
/usr/local/include/urdf_model/types.h:62:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(JointMimic);
 ^
/usr/local/include/urdf_model/types.h:63:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(JointSafety);
 ^
/usr/local/include/urdf_model/types.h:63:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(JointSafety);
 ^
/usr/local/include/urdf_model/types.h:63:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(JointSafety);
 ^
/usr/local/include/urdf_model/types.h:64:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Link);
 ^
/usr/local/include/urdf_model/types.h:64:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Link);
 ^
/usr/local/include/urdf_model/types.h:64:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Link);
 ^
/usr/local/include/urdf_model/types.h:65:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Material);
 ^
/usr/local/include/urdf_model/types.h:65:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Material);
 ^
/usr/local/include/urdf_model/types.h:65:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Material);
 ^
/usr/local/include/urdf_model/types.h:66:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Mesh);
 ^
/usr/local/include/urdf_model/types.h:66:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Mesh);
 ^
/usr/local/include/urdf_model/types.h:66:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Mesh);
 ^
/usr/local/include/urdf_model/types.h:67:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Sphere);
 ^
/usr/local/include/urdf_model/types.h:67:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Sphere);
 ^
/usr/local/include/urdf_model/types.h:67:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Sphere);
 ^
/usr/local/include/urdf_model/types.h:68:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Visual);
 ^
/usr/local/include/urdf_model/types.h:68:1: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Visual);
 ^
/usr/local/include/urdf_model/types.h:68:1: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 URDF_TYPEDEF_CLASS_POINTER(Visual);
 ^
/usr/local/include/urdf_model/types.h:72:6: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 std::shared_ptr<T> const_pointer_cast(std::shared_ptr<U> const & r)
      ^
/usr/local/include/urdf_model/types.h:78:6: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 std::shared_ptr<T> dynamic_pointer_cast(std::shared_ptr<U> const & r)
      ^
/usr/local/include/urdf_model/types.h:84:6: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 std::shared_ptr<T> static_pointer_cast(std::shared_ptr<U> const & r)
      ^
In file included from /usr/local/include/urdf_model/link.h:44:0,
                 from /usr/local/include/urdf_model/model.h:42,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/include/urdf/model.h:42,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:37:
/usr/local/include/urdf_model/joint.h:141:3: error: ‘DoubleSharedPtr’ does not name a type
   DoubleSharedPtr rising, falling;
   ^
/usr/local/include/urdf_model/joint.h:199:3: error: ‘JointDynamicsSharedPtr’ does not name a type
   JointDynamicsSharedPtr dynamics;
   ^
/usr/local/include/urdf_model/joint.h:202:3: error: ‘JointLimitsSharedPtr’ does not name a type
   JointLimitsSharedPtr limits;
   ^
/usr/local/include/urdf_model/joint.h:205:3: error: ‘JointSafetySharedPtr’ does not name a type
   JointSafetySharedPtr safety;
   ^
/usr/local/include/urdf_model/joint.h:208:3: error: ‘JointCalibrationSharedPtr’ does not name a type
   JointCalibrationSharedPtr calibration;
   ^
/usr/local/include/urdf_model/joint.h:211:3: error: ‘JointMimicSharedPtr’ does not name a type
   JointMimicSharedPtr mimic;
   ^
/usr/local/include/urdf_model/joint.h: In member function ‘void urdf::Joint::clear()’:
/usr/local/include/urdf_model/joint.h:219:11: error: ‘class urdf::Joint’ has no member named ‘dynamics’
     this->dynamics.reset();
           ^
/usr/local/include/urdf_model/joint.h:220:11: error: ‘class urdf::Joint’ has no member named ‘limits’
     this->limits.reset();
           ^
/usr/local/include/urdf_model/joint.h:221:11: error: ‘class urdf::Joint’ has no member named ‘safety’
     this->safety.reset();
           ^
/usr/local/include/urdf_model/joint.h:222:11: error: ‘class urdf::Joint’ has no member named ‘calibration’
     this->calibration.reset();
           ^
/usr/local/include/urdf_model/joint.h:223:11: error: ‘class urdf::Joint’ has no member named ‘mimic’
     this->mimic.reset();
           ^
In file included from /usr/local/include/urdf_model/link.h:45:0,
                 from /usr/local/include/urdf_model/model.h:42,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/include/urdf/model.h:42,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:37:
/usr/local/include/urdf_model/color.h: In member function ‘bool urdf::Color::init(const string&)’:
/usr/local/include/urdf_model/color.h:76:26: error: ‘stof’ is not a member of ‘std’
           rgba.push_back(std::stof(pieces[i]));
                          ^
In file included from /usr/local/include/urdf_model/model.h:42:0,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/include/urdf/model.h:42,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:37:
/usr/local/include/urdf_model/link.h: At global scope:
/usr/local/include/urdf_model/link.h:152:3: error: ‘GeometrySharedPtr’ does not name a type
   GeometrySharedPtr geometry;
   ^
/usr/local/include/urdf_model/link.h:155:3: error: ‘MaterialSharedPtr’ does not name a type
   MaterialSharedPtr material;
   ^
/usr/local/include/urdf_model/link.h: In member function ‘void urdf::Visual::clear()’:
/usr/local/include/urdf_model/link.h:161:5: error: ‘material’ was not declared in this scope
     material.reset();
     ^
/usr/local/include/urdf_model/link.h:162:5: error: ‘geometry’ was not declared in this scope
     geometry.reset();
     ^
/usr/local/include/urdf_model/link.h: At global scope:
/usr/local/include/urdf_model/link.h:174:3: error: ‘GeometrySharedPtr’ does not name a type
   GeometrySharedPtr geometry;
   ^
/usr/local/include/urdf_model/link.h: In member function ‘void urdf::Collision::clear()’:
/usr/local/include/urdf_model/link.h:179:5: error: ‘geometry’ was not declared in this scope
     geometry.reset();
     ^
/usr/local/include/urdf_model/link.h: At global scope:
/usr/local/include/urdf_model/link.h:196:3: error: ‘InertialSharedPtr’ does not name a type
   InertialSharedPtr inertial;
   ^
/usr/local/include/urdf_model/link.h:199:3: error: ‘VisualSharedPtr’ does not name a type
   VisualSharedPtr visual;
   ^
/usr/local/include/urdf_model/link.h:202:3: error: ‘CollisionSharedPtr’ does not name a type
   CollisionSharedPtr collision;
   ^
In file included from /usr/local/include/urdf_model/model.h:42:0,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/include/urdf/model.h:42,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:37:
/usr/local/include/urdf_model/link.h:205:15: error: ‘CollisionSharedPtr’ was not declared in this scope
   std::vector<CollisionSharedPtr> collision_array;
               ^
/usr/local/include/urdf_model/link.h:205:33: error: template argument 1 is invalid
   std::vector<CollisionSharedPtr> collision_array;
                                 ^
/usr/local/include/urdf_model/link.h:205:33: error: template argument 2 is invalid
/usr/local/include/urdf_model/link.h:208:15: error: ‘VisualSharedPtr’ was not declared in this scope
   std::vector<VisualSharedPtr> visual_array;
               ^
/usr/local/include/urdf_model/link.h:208:30: error: template argument 1 is invalid
   std::vector<VisualSharedPtr> visual_array;
                              ^
/usr/local/include/urdf_model/link.h:208:30: error: template argument 2 is invalid
/usr/local/include/urdf_model/link.h:213:3: error: ‘JointSharedPtr’ does not name a type
   JointSharedPtr parent_joint;
   ^
/usr/local/include/urdf_model/link.h:215:15: error: ‘JointSharedPtr’ was not declared in this scope
   std::vector<JointSharedPtr> child_joints;
               ^
/usr/local/include/urdf_model/link.h:215:29: error: template argument 1 is invalid
   std::vector<JointSharedPtr> child_joints;
                             ^
/usr/local/include/urdf_model/link.h:215:29: error: template argument 2 is invalid
/usr/local/include/urdf_model/link.h:216:15: error: ‘LinkSharedPtr’ was not declared in this scope
   std::vector<LinkSharedPtr> child_links;
               ^
/usr/local/include/urdf_model/link.h:216:28: error: template argument 1 is invalid
   std::vector<LinkSharedPtr> child_links;
                            ^
/usr/local/include/urdf_model/link.h:216:28: error: template argument 2 is invalid
/usr/local/include/urdf_model/link.h:218:3: error: ‘LinkSharedPtr’ does not name a type
   LinkSharedPtr getParent() const
   ^
/usr/local/include/urdf_model/link.h:221:24: error: ‘LinkSharedPtr’ does not name a type
   void setParent(const LinkSharedPtr &parent)
                        ^
/usr/local/include/urdf_model/link.h:238:3: error: ‘LinkWeakPtr’ does not name a type
   LinkWeakPtr parent_link_;
   ^
/usr/local/include/urdf_model/link.h: In member function ‘void urdf::Link::setParent(const int&)’:
/usr/local/include/urdf_model/link.h:222:5: error: ‘parent_link_’ was not declared in this scope
   { parent_link_ = parent; }
     ^
/usr/local/include/urdf_model/link.h: In member function ‘void urdf::Link::clear()’:
/usr/local/include/urdf_model/link.h:227:11: error: ‘class urdf::Link’ has no member named ‘inertial’
     this->inertial.reset();
           ^
/usr/local/include/urdf_model/link.h:228:11: error: ‘class urdf::Link’ has no member named ‘visual’
     this->visual.reset();
           ^
/usr/local/include/urdf_model/link.h:229:11: error: ‘class urdf::Link’ has no member named ‘collision’
     this->collision.reset();
           ^
/usr/local/include/urdf_model/link.h:230:11: error: ‘class urdf::Link’ has no member named ‘parent_joint’
     this->parent_joint.reset();
           ^
/usr/local/include/urdf_model/link.h:231:24: error: request for member ‘clear’ in ‘((urdf::Link*)this)->urdf::Link::child_joints’, which is of non-class type ‘int’
     this->child_joints.clear();
                        ^
/usr/local/include/urdf_model/link.h:232:23: error: request for member ‘clear’ in ‘((urdf::Link*)this)->urdf::Link::child_links’, which is of non-class type ‘int’
     this->child_links.clear();
                       ^
/usr/local/include/urdf_model/link.h:233:27: error: request for member ‘clear’ in ‘((urdf::Link*)this)->urdf::Link::collision_array’, which is of non-class type ‘int’
     this->collision_array.clear();
                           ^
/usr/local/include/urdf_model/link.h:234:24: error: request for member ‘clear’ in ‘((urdf::Link*)this)->urdf::Link::visual_array’, which is of non-class type ‘int’
     this->visual_array.clear();
                        ^
In file included from /home/pi/ros_catkin_ws/src/robot_model/urdf/include/urdf/model.h:42:0,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:37:
/usr/local/include/urdf_model/model.h: At global scope:
/usr/local/include/urdf_model/model.h:51:3: error: ‘LinkConstSharedPtr’ does not name a type
   LinkConstSharedPtr getRoot(void) const{return this->root_link_;};
   ^
/usr/local/include/urdf_model/model.h:52:3: error: ‘LinkConstSharedPtr’ does not name a type
   LinkConstSharedPtr getLink(const std::string& name) const
   ^
/usr/local/include/urdf_model/model.h:62:3: error: ‘JointConstSharedPtr’ does not name a type
   JointConstSharedPtr getJoint(const std::string& name) const
   ^
/usr/local/include/urdf_model/model.h:74:29: error: ‘LinkSharedPtr’ was not declared in this scope
   void getLinks(std::vector<LinkSharedPtr >& links) const
                             ^
/usr/local/include/urdf_model/model.h:74:43: error: template argument 1 is invalid
   void getLinks(std::vector<LinkSharedPtr >& links) const
                                           ^
/usr/local/include/urdf_model/model.h:74:43: error: template argument 2 is invalid
/usr/local/include/urdf_model/model.h:92:41: error: ‘LinkSharedPtr’ has not been declared
   void getLink(const std::string& name, LinkSharedPtr &link) const
                                         ^
/usr/local/include/urdf_model/model.h:103:3: error: ‘MaterialSharedPtr’ does not name a type
   MaterialSharedPtr getMaterial(const std::string& name) const
   ^
In file included from /home/pi/ros_catkin_ws/src/robot_model/urdf/include/urdf/model.h:42:0,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:37:
/usr/local/include/urdf_model/model.h:188:25: error: ‘LinkSharedPtr’ was not declared in this scope
   std::map<std::string, LinkSharedPtr> links_;
                         ^
/usr/local/include/urdf_model/model.h:188:38: error: template argument 2 is invalid
   std::map<std::string, LinkSharedPtr> links_;
                                      ^
/usr/local/include/urdf_model/model.h:188:38: error: template argument 4 is invalid
/usr/local/include/urdf_model/model.h:190:25: error: ‘JointSharedPtr’ was not declared in this scope
   std::map<std::string, JointSharedPtr> joints_;
                         ^
/usr/local/include/urdf_model/model.h:190:39: error: template argument 2 is invalid
   std::map<std::string, JointSharedPtr> joints_;
                                       ^
/usr/local/include/urdf_model/model.h:190:39: error: template argument 4 is invalid
/usr/local/include/urdf_model/model.h:192:25: error: ‘MaterialSharedPtr’ was not declared in this scope
   std::map<std::string, MaterialSharedPtr> materials_;
                         ^
/usr/local/include/urdf_model/model.h:192:42: error: template argument 2 is invalid
   std::map<std::string, MaterialSharedPtr> materials_;
                                          ^
/usr/local/include/urdf_model/model.h:192:42: error: template argument 4 is invalid
/usr/local/include/urdf_model/model.h:198:3: error: ‘LinkSharedPtr’ does not name a type
   LinkSharedPtr root_link_;
   ^
In file included from /home/pi/ros_catkin_ws/src/robot_model/urdf/include/urdf/model.h:42:0,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:37:
/usr/local/include/urdf_model/model.h: In member function ‘void urdf::ModelInterface::getLinks(int&) const’:
/usr/local/include/urdf_model/model.h:76:31: error: ‘LinkSharedPtr’ was not declared in this scope
     for (std::map<std::string,LinkSharedPtr>::const_iterator link = this->links_.begin();link != this->links_.end(); link++)
                               ^
/usr/local/include/urdf_model/model.h:76:44: error: template argument 2 is invalid
     for (std::map<std::string,LinkSharedPtr>::const_iterator link = this->links_.begin();link != this->links_.end(); link++)
                                            ^
/usr/local/include/urdf_model/model.h:76:44: error: template argument 4 is invalid
/usr/local/include/urdf_model/model.h:76:62: error: invalid type in declaration before ‘link’
     for (std::map<std::string,LinkSharedPtr>::const_iterator link = this->links_.begin();link != this->links_.end(); link++)
                                                              ^
/usr/local/include/urdf_model/model.h:76:62: error: expected ‘;’ before ‘link’
/usr/local/include/urdf_model/model.h:76:62: error: ‘link’ was not declared in this scope
/usr/local/include/urdf_model/model.h:76:82: error: request for member ‘begin’ in ‘((const urdf::ModelInterface*)this)->urdf::ModelInterface::links_’, which is of non-class type ‘const int’
     for (std::map<std::string,LinkSharedPtr>::const_iterator link = this->links_.begin();link != this->links_.end(); link++)
                                                                                  ^
/usr/local/include/urdf_model/model.h:76:111: error: request for member ‘end’ in ‘((const urdf::ModelInterface*)this)->urdf::ModelInterface::links_’, which is of non-class type ‘const int’
     for (std::map<std::string,LinkSharedPtr>::const_iterator link = this->links_.begin();link != this->links_.end(); link++)
                                                                                                               ^
/usr/local/include/urdf_model/model.h:76:116: error: expected ‘)’ before ‘;’ token
     for (std::map<std::string,LinkSharedPtr>::const_iterator link = this->links_.begin();link != this->links_.end(); link++)
                                                                                                                    ^
/usr/local/include/urdf_model/model.h:76:118: error: ‘link’ was not declared in this scope
     for (std::map<std::string,LinkSharedPtr>::const_iterator link = this->links_.begin();link != this->links_.end(); link++)
                                                                                                                      ^
/usr/local/include/urdf_model/model.h: In member function ‘void urdf::ModelInterface::clear()’:
/usr/local/include/urdf_model/model.h:85:18: error: request for member ‘clear’ in ‘((urdf::ModelInterface*)this)->urdf::ModelInterface::links_’, which is of non-class type ‘int’
     this->links_.clear();
                  ^
/usr/local/include/urdf_model/model.h:86:19: error: request for member ‘clear’ in ‘((urdf::ModelInterface*)this)->urdf::ModelInterface::joints_’, which is of non-class type ‘int’
     this->joints_.clear();
                   ^
/usr/local/include/urdf_model/model.h:87:22: error: request for member ‘clear’ in ‘((urdf::ModelInterface*)this)->urdf::ModelInterface::materials_’, which is of non-class type ‘int’
     this->materials_.clear();
                      ^
/usr/local/include/urdf_model/model.h:88:11: error: ‘class urdf::ModelInterface’ has no member named ‘root_link_’
     this->root_link_.reset();
           ^
/usr/local/include/urdf_model/model.h: In member function ‘void urdf::ModelInterface::getLink(const string&, int&) const’:
/usr/local/include/urdf_model/model.h:94:5: error: ‘LinkSharedPtr’ was not declared in this scope
     LinkSharedPtr ptr;
     ^
/usr/local/include/urdf_model/model.h:95:22: error: request for member ‘find’ in ‘((const urdf::ModelInterface*)this)->urdf::ModelInterface::links_’, which is of non-class type ‘const int’
     if (this->links_.find(name) == this->links_.end())
                      ^
/usr/local/include/urdf_model/model.h:95:49: error: request for member ‘end’ in ‘((const urdf::ModelInterface*)this)->urdf::ModelInterface::links_’, which is of non-class type ‘const int’
     if (this->links_.find(name) == this->links_.end())
                                                 ^
/usr/local/include/urdf_model/model.h:96:7: error: ‘ptr’ was not declared in this scope
       ptr.reset();
       ^
/usr/local/include/urdf_model/model.h:98:7: error: ‘ptr’ was not declared in this scope
       ptr = this->links_.find(name)->second;
       ^
/usr/local/include/urdf_model/model.h:98:26: error: request for member ‘find’ in ‘((const urdf::ModelInterface*)this)->urdf::ModelInterface::links_’, which is of non-class type ‘const int’
       ptr = this->links_.find(name)->second;
                          ^
/usr/local/include/urdf_model/model.h:99:12: error: ‘ptr’ was not declared in this scope
     link = ptr;
            ^
/usr/local/include/urdf_model/model.h: In member function ‘void urdf::ModelInterface::initTree(std::map<std::basic_string<char>, std::basic_string<char> >&)’:
/usr/local/include/urdf_model/model.h:116:32: error: ‘JointSharedPtr’ was not declared in this scope
     for (std::map<std::string, JointSharedPtr>::iterator joint = this->joints_.begin();joint != this->joints_.end(); joint++)
                                ^
/usr/local/include/urdf_model/model.h:116:46: error: template argument 2 is invalid
     for (std::map<std::string, JointSharedPtr>::iterator joint = this->joints_.begin();joint != this->joints_.end(); joint++)
                                              ^
/usr/local/include/urdf_model/model.h:116:46: error: template argument 4 is invalid
/usr/local/include/urdf_model/model.h:116:58: error: invalid type in declaration before ‘joint’
     for (std::map<std::string, JointSharedPtr>::iterator joint = this->joints_.begin();joint != this->joints_.end(); joint++)
                                                          ^
/usr/local/include/urdf_model/model.h:116:58: error: expected ‘;’ before ‘joint’
/usr/local/include/urdf_model/model.h:116:58: error: ‘joint’ was not declared in this scope
/usr/local/include/urdf_model/model.h:116:80: error: request for member ‘begin’ in ‘((urdf::ModelInterface*)this)->urdf::ModelInterface::joints_’, which is of non-class type ‘int’
     for (std::map<std::string, JointSharedPtr>::iterator joint = this->joints_.begin();joint != this->joints_.end(); joint++)
                                                                                ^
/usr/local/include/urdf_model/model.h:116:111: error: request for member ‘end’ in ‘((urdf::ModelInterface*)this)->urdf::ModelInterface::joints_’, which is of non-class type ‘int’
     for (std::map<std::string, JointSharedPtr>::iterator joint = this->joints_.begin();joint != this->joints_.end(); joint++)
                                                                                                               ^
/usr/local/include/urdf_model/model.h:116:116: error: expected ‘)’ before ‘;’ token
     for (std::map<std::string, JointSharedPtr>::iterator joint = this->joints_.begin();joint != this->joints_.end(); joint++)
                                                                                                                    ^
/usr/local/include/urdf_model/model.h:116:118: error: ‘joint’ was not declared in this scope
     for (std::map<std::string, JointSharedPtr>::iterator joint = this->joints_.begin();joint != this->joints_.end(); joint++)
                                                                                                                      ^
In file included from /home/pi/ros_catkin_ws/src/robot_model/urdf/include/urdf/model.h:42:0,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:37:
/usr/local/include/urdf_model/model.h: In member function ‘void urdf::ModelInterface::initRoot(const std::map<std::basic_string<char>, std::basic_string<char> >&)’:
/usr/local/include/urdf_model/model.h:160:11: error: ‘class urdf::ModelInterface’ has no member named ‘root_link_’
     this->root_link_.reset();
           ^
/usr/local/include/urdf_model/model.h:163:32: error: ‘LinkSharedPtr’ was not declared in this scope
     for (std::map<std::string, LinkSharedPtr>::const_iterator l=this->links_.begin(); l!=this->links_.end(); l++)
                                ^
/usr/local/include/urdf_model/model.h:163:45: error: template argument 2 is invalid
     for (std::map<std::string, LinkSharedPtr>::const_iterator l=this->links_.begin(); l!=this->links_.end(); l++)
                                             ^
/usr/local/include/urdf_model/model.h:163:45: error: template argument 4 is invalid
/usr/local/include/urdf_model/model.h:163:63: error: invalid type in declaration before ‘l’
     for (std::map<std::string, LinkSharedPtr>::const_iterator l=this->links_.begin(); l!=this->links_.end(); l++)
                                                               ^
/usr/local/include/urdf_model/model.h:163:63: error: expected ‘;’ before ‘l’
/usr/local/include/urdf_model/model.h:163:63: error: ‘l’ was not declared in this scope
/usr/local/include/urdf_model/model.h:163:78: error: request for member ‘begin’ in ‘((urdf::ModelInterface*)this)->urdf::ModelInterface::links_’, which is of non-class type ‘int’
     for (std::map<std::string, LinkSharedPtr>::const_iterator l=this->links_.begin(); l!=this->links_.end(); l++)
                                                                              ^
/usr/local/include/urdf_model/model.h:163:103: error: request for member ‘end’ in ‘((urdf::ModelInterface*)this)->urdf::ModelInterface::links_’, which is of non-class type ‘int’
     for (std::map<std::string, LinkSharedPtr>::const_iterator l=this->links_.begin(); l!=this->links_.end(); l++)
                                                                                                       ^
/usr/local/include/urdf_model/model.h:163:108: error: expected ‘)’ before ‘;’ token
     for (std::map<std::string, LinkSharedPtr>::const_iterator l=this->links_.begin(); l!=this->links_.end(); l++)
                                                                                                            ^
/usr/local/include/urdf_model/model.h:163:110: error: ‘l’ was not declared in this scope
     for (std::map<std::string, LinkSharedPtr>::const_iterator l=this->links_.begin(); l!=this->links_.end(); l++)
                                                                                                              ^
/usr/local/include/urdf_model/model.h:180:16: error: ‘class urdf::ModelInterface’ has no member named ‘root_link_’
     if (!this->root_link_)
                ^
In file included from /home/pi/ros_catkin_ws/devel_isolated/urdf/include/urdf/urdfdom_compatibility.h:84:0,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/include/urdf/model.h:43,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:37:
/usr/local/include/urdf_world/types.h: At global scope:
/usr/local/include/urdf_world/types.h:48:14: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 typedef std::shared_ptr<ModelInterface> ModelInterfaceSharedPtr;
              ^
In file included from /home/pi/ros_catkin_ws/src/robot_model/urdf/include/urdf/model.h:43:0,
                 from /home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:37:
/home/pi/ros_catkin_ws/devel_isolated/urdf/include/urdf/urdfdom_compatibility.h:87:14: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 typedef std::shared_ptr<ModelInterface> ModelInterfaceSharedPtr;
              ^
/home/pi/ros_catkin_ws/devel_isolated/urdf/include/urdf/urdfdom_compatibility.h:88:14: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
 typedef std::shared_ptr<const ModelInterface> ModelInterfaceConstSharedPtr;
              ^
/home/pi/ros_catkin_ws/devel_isolated/urdf/include/urdf/urdfdom_compatibility.h:89:14: error: ‘weak_ptr’ in namespace ‘std’ does not name a template type
 typedef std::weak_ptr<ModelInterface> ModelInterfaceWeakPtr;
              ^
In file included from /home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:43:0:
/usr/local/include/urdf_parser/urdf_parser.h:61:18: error: ‘ModelInterfaceSharedPtr’ does not name a type
   URDFDOM_DLLAPI ModelInterfaceSharedPtr parseURDF(const std::string &xml_string);
                  ^
/usr/local/include/urdf_parser/urdf_parser.h:62:18: error: ‘ModelInterfaceSharedPtr’ does not name a type
   URDFDOM_DLLAPI ModelInterfaceSharedPtr parseURDFFile(const std::string &path);
                  ^
/usr/local/include/urdf_parser/urdf_parser.h:63:45: error: ‘ModelInterfaceSharedPtr’ was not declared in this scope
   URDFDOM_DLLAPI TiXmlDocument*  exportURDF(ModelInterfaceSharedPtr &model);
                                             ^
/usr/local/include/urdf_parser/urdf_parser.h:63:70: error: ‘model’ was not declared in this scope
   URDFDOM_DLLAPI TiXmlDocument*  exportURDF(ModelInterfaceSharedPtr &model);
                                                                      ^
/usr/local/include/urdf_parser/urdf_parser.h:64:72: error: ‘TiXmlDocument* urdf::exportURDF(const urdf::ModelInterface&)’ redeclared as different kind of symbol
   URDFDOM_DLLAPI TiXmlDocument*  exportURDF(const ModelInterface &model);
                                                                        ^
/usr/local/include/urdf_parser/urdf_parser.h:63:34: note: previous declaration ‘TiXmlDocument* urdf::exportURDF’
   URDFDOM_DLLAPI TiXmlDocument*  exportURDF(ModelInterfaceSharedPtr &model);
                                  ^
In file included from /home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:44:0:
/opt/ros/indigo/include/urdf_parser_plugin/parser.h:57:17: error: ‘ModelInterfaceSharedPtr’ in namespace ‘urdf’ does not name a type
   virtual urdf::ModelInterfaceSharedPtr parse(const std::string &xml_string) = 0;
                 ^
/home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp: In member function ‘bool urdf::Model::initString(const string&)’:
/home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:139:3: error: ‘ModelInterfaceSharedPtr’ is not a member of ‘urdf’
   urdf::ModelInterfaceSharedPtr model;
   ^
/home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:160:6: error: ‘model’ was not declared in this scope
      model = instance->parse(xml_string);
      ^
/home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:160:24: error: ‘class urdf::URDFParser’ has no member named ‘parse’
      model = instance->parse(xml_string);
                        ^
/home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:174:5: error: ‘model’ was not declared in this scope
     model = parseURDF(xml_string);
     ^
/home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:174:33: error: ‘parseURDF’ was not declared in this scope
     model = parseURDF(xml_string);
                                 ^
/home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:178:7: error: ‘model’ was not declared in this scope
   if (model){
       ^
/home/pi/ros_catkin_ws/src/robot_model/urdf/src/model.cpp:183:11: error: ‘class urdf::Model’ has no member named ‘root_link_’
     this->root_link_ = model->root_link_;
           ^
CMakeFiles/urdf.dir/build.make:62: recipe for target 'CMakeFiles/urdf.dir/src/model.cpp.o' failed
make[2]: *** [CMakeFiles/urdf.dir/src/model.cpp.o] Error 1
CMakeFiles/Makefile2:516: recipe for target 'CMakeFiles/urdf.dir/all' failed
make[1]: *** [CMakeFiles/urdf.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'urdf': 
  Command '['/opt/ros/indigo/env.sh', 'make', '-j2']' returned non-zero exit status 2
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值