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

pr2 object manipulation demo code cannot compile

asked 2012-11-11 20:07:34 -0500

roskidos gravatar image

updated 2012-11-12 01:24:57 -0500

Hi,

the tutorial code from Write a simple pick and place application

when I used rosmake to build the node, it brought following errors. It looks like being compiled with wrong header files -> many unknown members of class

/home/leshawn/stacks_additional/pr2_SHAWNLE/pr2_pick_and_place_tutorial/src/simple_pick_n_place_app.cpp:171:2: error: stray ‘\302’ in program
  /home/leshawn/stacks_additional/pr2_SHAWNLE/pr2_pick_and_place_tutorial/src/simple_pick_n_place_app.cpp:171:2: error: stray ‘\267’ in program
  /home/leshawn/stacks_additional/pr2_SHAWNLE/pr2_pick_and_place_tutorial/src/simple_pick_n_place_app.cpp: In function ‘int main(int, char**)’:
  /home/leshawn/stacks_additional/pr2_SHAWNLE/pr2_pick_and_place_tutorial/src/simple_pick_n_place_app.cpp:92:26: error: ‘tabletop_collision_map_processing::TabletopCollisionMapProcessing::Request’ has no member named ‘reset_static_map’    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<  ERROR
  /home/leshawn/stacks_additional/pr2_SHAWNLE/pr2_pick_and_place_tutorial/src/simple_pick_n_place_app.cpp:97:26: error: ‘tabletop_collision_map_processing::TabletopCollisionMapProcessing::Request’ has no member named ‘take_static_collision_map’ <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  /home/leshawn/stacks_additional/pr2_SHAWNLE/pr2_pick_and_place_tutorial/src/simple_pick_n_place_app.cpp:126:14: error: ‘object_manipulation_msgs::PickupGoal’ has no member named ‘desired_approach_distance’ <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  /home/leshawn/stacks_additional/pr2_SHAWNLE/pr2_pick_and_place_tutorial/src/simple_pick_n_place_app.cpp:127:14: error: ‘object_manipulation_msgs::PickupGoal’ has no member named ‘min_approach_distance’ <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  /home/leshawn/stacks_additional/pr2_SHAWNLE/pr2_pick_and_place_tutorial/src/simple_pick_n_place_app.cpp:159:55: error: ‘struct object_manipulation_msgs::GraspableObject_<std::allocator<void> >’ has no member named ‘type’ <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  /home/leshawn/stacks_additional/pr2_SHAWNLE/pr2_pick_and_place_tutorial/src/simple_pick_n_place_app.cpp:159:63: error: ‘DATABASE_MODEL’ is not a member of ‘object_manipulation_msgs::GraspableObject’
  /home/leshawn/stacks_additional/pr2_SHAWNLE/pr2_pick_and_place_tutorial/src/simple_pick_n_place_app.cpp:162:70: error: ‘struct object_manipulation_msgs::GraspableObject_<std::allocator<void> >’ has no member named ‘model_pose’ <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  /home/leshawn/stacks_additional/pr2_SHAWNLE/pr2_pick_and_place_tutorial/src/simple_pick_n_place_app.cpp:182:13: error: ‘object_manipulation_msgs::PlaceGoal’ has no member named ‘place_pose’ <<<<<<<<<<<<<<<<<<<<

I've checked API doc (I used fuerte but the class members are still similar) to see if there is any change in Class definition so those class members are not available anymore. But the fact is those classes are still the same.

Now I'm confused, dunno what's wrong with it. How can it bring up those errors??

Thank you for any support!!

Edit 01: I've compiled the code again in Eclipse with GCC C++ with all the necessary inclusion and configuration. And... still the same unknown class members. So, perhaps the class definition has been through updates/changes compared to the ones used in tutorial code and I'll have to adapt the old version to the new code. If my diagnosis is correct, any hint to speed up this work?? I'm slow at reading such a big ROS header files :((

Thank you!!

edit retag flag offensive close merge delete

Comments

I'm using fuerte ROS. Therefore, I tried to get the tutorial code for fuerte version and succeeded by printing the according tutorial page of fuerte (still can see the code). Anyway, I can compile it without error now by using the electric tutorial code. Thank you! put your answer sothat I can thk u

roskidos gravatar image roskidos  ( 2012-11-13 17:00:41 -0500 )edit

I'm using fuerte ROS. Therefore, I tried to get the tutorial code for fuerte version and succeeded by printing the according tutorial page of fuerte (still can see the code). Anyway, I can compile it without error now by using the electric tutorial code. Thank you! put your answer sothat I can thk u

roskidos gravatar image roskidos  ( 2012-11-13 17:00:47 -0500 )edit

I didn't notice that it is electric ROS support until you and Lorenz told me. Sadly, it took me hours of debugging and referencing :|

roskidos gravatar image roskidos  ( 2012-11-13 17:12:40 -0500 )edit

Cool! Can you make your fuerte modifications available somewhere and post it as an answer to this question? Also, all I did was ask a clarifying question, you answered this one, yourself.

jbohren gravatar image jbohren  ( 2012-11-14 02:21:00 -0500 )edit

sure I'll do! but currently not finished yet. I'm still accumulating experience working with ROS :)

roskidos gravatar image roskidos  ( 2012-11-24 18:17:41 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2012-11-12 16:05:55 -0500

jbohren gravatar image

That tutorial is for ROS electric. Are you using ROS electric or are you using some other distribution?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-11-11 20:07:34 -0500

Seen: 169 times

Last updated: Nov 12 '12