Ask Your Question

ROS-Industrial(Hydro) Training Exercises 3.6

asked 2014-11-05 22:16:51 -0500

sara gravatar image

updated 2014-11-06 02:20:21 -0500

gvdhoorn gravatar image

Hi, all

I'm now following ROS-Industrial(Hydro) Training Exercises 3.6

I can finish the Exercise 3.6.1 which create a random motion for my robot.

Now when I try to do the next step, set a specific goal position, I had a problem.

I follow the instructions said: " copy the original example file to lesson_move_group_2, modify the relevant sections, and add the new lines to your CMakeLists.txt." after the catkin_make and source ~/catkin_ws/devel/setup.bash everything works just fine. Like this:

However, when I do rosrun lesson_move_group lesson_move_group_2

there is an error :

[rosrun] Couldn't find executable named lesson_move_group_2 below /home/viki/catkin_ws/src/lesson_move_group

which seems the lesson_move_group_2 doesn't build correctly.

Then I go to cakin_ws/devel/lib/lesson_move_group/ I found a file named "lesson_move_group_1" like a binary file. If I copy this lesson_move_group_1 file and rename it to lesson_move_group_2, then it can do rosrun lesson_move_group lesson_move_group_2. The robot will execute a random movement, just like runing the lesson_move_group_1.

So, I thought, catkin_make and source ~/catkin_ws/devel/setup.bash didn't build the binary file for lesson_move_group_2.

Is my suggestion correct? and if it is then what should I do?

this is the link of the tutorial:

edit retag flag offensive close merge delete



Please post the "new lines" you added to CMakeLists.txt. It sounds like your file isn't building. This could be the result of a bad CMakeLists or a compile problem.

sedwards gravatar image sedwards  ( 2014-11-06 16:02:18 -0500 )edit

I add these into the CMakeLists.txt

add_executable(lesson_move_group_2 src/lesson_move_group_2.cpp) target_link_libraries(lesson_move_group_2 ${catkin_LIBRARIES})

sara gravatar image sara  ( 2014-11-06 16:31:39 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-11-11 17:23:30 -0500

Included in the ROS-I training is the solution to every exercise. You can search through the directories, or you can go directly there using training_ref 3.6 on the command line. If you use the command line function, this will setup the workspace and build everything. This should demonstrate the final solution to the exercise.

If you want to see what may be causing your specific issue, I recommend diffing the ref and work directories.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-11-05 22:16:51 -0500

Seen: 267 times

Last updated: Nov 11 '14