jmiseikis / ur5_inf3480

Demo code for controlling UR5 using ROS and MoveIt!
28 stars 8 forks source link

cmake error #3

Open stevensu1838 opened 6 years ago

stevensu1838 commented 6 years ago

OS: 14.04 LTS ROS: indigo

I quickly ran through the commands on the github page. When I ran the launch file for the first time, I got the same frame warnings (ERROR: cannot launch node of type [ur5_inf3480/inf3480_move_robot]: can't locate node [inf3480_move_robot] in package [ur5_inf3480] ) but everything seems to work, so I wouldn't worry about that error. When I do run it (before adding the node),I can control the arm using the sliders (it's controlled by the python node that launches at the same time).

After adding the node, I tried running catkin_make again. The following is what happens next.

[ 14%] Building CXX object ur5_inf3480/CMakeFiles/inf3480_move_robot.dir/src/inf3480_move_robot.cpp.o /home/ysu66/catkin_ws/src/ur5_inf3480/src/inf3480_move_robot.cpp:43:2: error: stray ‘\303’ in program std::vector ß; ^ /home/ysu66/catkin_ws/src/ur5_inf3480/src/inf3480_move_robot.cpp:43:2: error: stray ‘\237’ in program /home/ysu66/catkin_ws/src/ur5_inf3480/src/inf3480_move_robot.cpp:43:7: error: a template-id may not appear in a using-declaration std::vector ß; ^ /home/ysu66/catkin_ws/src/ur5_inf3480/src/inf3480_move_robot.cpp: In member function ‘void MoveRobot::AddLeapMotionObstacle(const leapros&)’: /home/ysu66/catkin_ws/src/ur5_inf3480/src/inf3480_move_robot.cpp:311:3: error: ‘collision_objects’ was not declared in this scope collision_objects[0].primitive_poses[0].position.x = (target_point.x) / 500; ^ make[2]: [ur5_inf3480/CMakeFiles/inf3480_move_robot.dir/src/inf3480_move_robot.cpp.o] Error 1 make[1]: [ur5_inf3480/CMakeFiles/inf3480_move_robot.dir/all] Error 2 make: *** [all] Error 2 make: INTERNAL: Exiting with 9 jobserver tokens available; should be 8! Invoking "make -j8 -l8" failed ysu66@mech1331:~/catkin_ws$

jmiseikis commented 6 years ago

Hi,

It looks like I've accidentally left a typo in the code. If you comment out line 43 in inf3480_move_robot.cpp, it should compile and work. Then you can check the tutorial and uncomment some lines in 51-56 to execute some pre-programmed moves. Same for adding the collision objects in the robot environment.

Please note that this code is created as a teaching tool for students being introduced to ROS and not as a working product.

Justas

On Fri, Jan 26, 2018 at 5:10 AM, stevensu1838 notifications@github.com wrote:

OS: 14.04 LTS ROS: indigo

I quickly ran through the commands on the github page. When I ran the launch file for the first time, I got the same frame warnings (ERROR: cannot launch node of type [ur5_inf3480/inf3480_move_robot]: can't locate node [inf3480_move_robot] in package [ur5_inf3480] ) but everything seems to work, so I wouldn't worry about that error. When I do run it (before adding the node),I can control the arm using the sliders (it's controlled by the python node that launches at the same time).

After adding the node, I tried running catkin_make again. The following is what happens next.

[ 14%] Building CXX object ur5_inf3480/CMakeFiles/ inf3480_move_robot.dir/src/inf3480_move_robot.cpp.o /home/ysu66/catkin_ws/src/ur5_inf3480/src/inf3480_move_robot.cpp:43:2: error: stray ‘\303’ in program std::vector ß; ^ /home/ysu66/catkin_ws/src/ur5_inf3480/src/inf3480_move_robot.cpp:43:2: error: stray ‘\237’ in program /home/ysu66/catkin_ws/src/ur5_inf3480/src/inf3480_move_robot.cpp:43:7: error: a template-id may not appear in a using-declaration std::vector ß; ^ /home/ysu66/catkin_ws/src/ur5_inf3480/src/inf3480_move_robot.cpp: In member function ‘void MoveRobot::AddLeapMotionObstacle(const leapros&)’: /home/ysu66/catkin_ws/src/ur5_inf3480/src/inf3480_move_robot.cpp:311:3: error: ‘collision_objects’ was not declared in this scope collision_objects[0].primitive_poses[0].position.x = (target_point.x) / 500; ^ make[2]: [ur5_inf3480/CMakeFiles/inf3480_move_robot.dir/src/inf3480_move_robot.cpp.o] Error 1 make[1]: [ur5_inf3480/CMakeFiles/inf3480_move_robot.dir/all] Error 2 make: *** [all] Error 2 make: INTERNAL: Exiting with 9 jobserver tokens available; should be 8! Invoking "make -j8 -l8" failed ysu66@mech1331:~/catkin_ws$

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jmiseikis/ur5_inf3480/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AB1UMNLGPN97obPF1jAYiHLQb_vTbsxPks5tOVBJgaJpZM4Rt1qK .

-- Justinas Mišeikis

stevensu1838 commented 6 years ago

Hi Justas, Can you please elabrate on how to comment out line 43 std::vector ß; Coz it looks like it is not commented. Thank you so much for your help

PorkPy commented 5 years ago

Hi, @jmiseikis @stevensu1838 I am having a very similar problem. Before including the .cpp file everything was fine. Workspace complied and simulation worked perfectly. After adding .cpp file I got:

ERROR: cannot launch node of type [ur5_inf3480/inf3480_move_robot]: can't locate node [inf3480_move_robot] in package [ur5_inf3480]

The workspace will not compile either just as in the comment above. I have commented out line 43

std::vector collision_objects_list;

but there is no change. I'm desperately trying to work out how to control a ur5 using live, updatable script commands but every tutorial I find stops right at the important part. Although this github repo by @jmiseikis is the closest I have got so far. If only I could get this .cpp code to work!! @stevensu1838 Did you ever get a solution to your problem?

Kind regards, Dom.

p.s. I'm using ros kinetic on ubuntu 16.04.