ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

planning_model package build fails: oneric

asked 2011-11-30 18:02:50 -0600

updated 2013-02-21 04:19:49 -0600

130s gravatar image

Hi, I m trying to build armnavigation stack of ros electric. in ubuntu oneiric using gcc4.6. but i ran into the following errors:

/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:251:37: error: wrong number of template arguments (1, should be 3)
/usr/include/boost/detail/container_fwd.hpp:90:64: error: provided for ‘template<class key,="" class="" compare,="" class="" allocator=""> struct std::set’
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:251:49: error: invalid type in declaration before ‘it’
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:251:49: error: expected ‘;’ before ‘it’
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:251:49: error: ‘it’ was not declared in this scope
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:251:64: error: request for member ‘begin’ in ‘joint_set’, which is of non-class type ‘int’
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:252:27: error: request for member ‘end’ in ‘joint_set’, which is of non-class type ‘int’
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:252:32: error: expected ‘)’ before ‘;’ token
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:251:40: warning: unused variable ‘iterator’ [-Wunused-variable]
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:253:11: error: ‘it’ was not declared in this scope
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:253:15: error: expected ‘;’ before ‘)’ token
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp: In member function ‘planning_models::KinematicModel::LinkModel* planning_models::KinematicModel::constructLinkModel(const urdf::Link)’:
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:422:23: error: ‘ROS_ASSERT’ was not declared in this scope
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp: In member function ‘shapes::Shape
planning_models::KinematicModel::constructShape(const urdf::Geometry)’:
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:453:18: error: ‘ROS_ASSERT’ was not declared in this scope
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp: In constructor ‘planning_models::KinematicModel::JointModelGroup::JointModelGroup(const string&, const std::vector<const planning_models::kinematicmodel::jointmodel*&gt;&amp;,="" const="" std::vector<const="" planning_models::kinematicmodel::jointmodel*&gt;&amp;,="" const="" planning_models::kinematicmodel<="" em="">)’:
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:1264:28: error: wrong number of template arguments (1, should be 3)
/usr/include/boost/detail/container_fwd.hpp:90:64: error: provided for ‘template<class key,="" class="" compare,="" class="" allocator=""> struct std::set’
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:1264:45: error: invalid type in declaration before ‘;’ token
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:1268:21: error: request for member ‘insert’ in ‘group_links_set’, which is of non-class type ‘int’
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:1275:23: error: request for member ‘insert’ in ‘group_links_set’, which is of non-class type ‘int’
/home/pragyan/tredext/biome/armnavigation/planning_models/src/kinematic_model.cpp:1281:32: error: wrong number of template arguments (1, should be 3)
/usr/include/boost/detail/container_fwd.hpp:90:64: error: provided for ‘template<class key,="" class="" compare,="" class="" allocator=""> struct std::set’
/home ...

(more)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2012-04-05 04:11:58 -0600

Julius gravatar image

This is the clue:

‘ROS_ASSERT’ was not declared in this scope

So just include the header ros/assert.h that declares ROS_ASSERT in the offending file

Index: src/kinematic_model.cpp
===================================================================
--- src/kinematic_model.cpp     (revision 54435)
+++ src/kinematic_model.cpp     (working copy)
@@ -39,6 +39,7 @@
 #include <resource_retriever/retriever.h>
 #include <queue>
 #include <ros/console.h>
+#include <ros/assert.h>
 #include <cmath>
 #include <angles/angles.h>
 #include <assimp/assimp.hpp>
edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-11-30 18:02:50 -0600

Seen: 316 times

Last updated: Apr 05 '12