Ask Your Question

Unable to create/find executable when using rosrun.

asked 2014-06-27 06:47:01 -0500

Abhishek Jha gravatar image

updated 2014-06-27 07:02:34 -0500

dornhege gravatar image

Hello all,

I am trying to run a C++ code to move the ur5 robotic arm to random configurations in moveit!. However when I am trying to run the code using rosrun I am getting the following error:

[rosrun] Couldn't find executable named move_group_interface_tutorial below /home/abhi/Desktop/universal_robot/ur_moveit_tutorials

The C++ file is this:

#include <ros/ros.h>
#include <moveit/move_group_interface/move_group.h>
int main(int argc, char **argv)
  ros::init(argc, argv, "lesson_move_group");

  // start a background "spinner", so our node can process ROS messages
  //  - this lets us know when the move is completed
  ros::AsyncSpinner spinner(1);

  move_group_interface::MoveGroup group("manipulator");

The CMakeLists.txt file is something like this:

cmake_minimum_required(VERSION 2.4.6)


#set the default path for built executables to the "bin" directory
#set the default path for built libraries to the "lib" directory

#uncomment if you have defined messages
#uncomment if you have defined services

rosbuild_add_executable(lesson_move_group_1 src/lesson_move_group_1.cpp)
target_link_libraries(lesson_move_group_1 moveit_move_group_interface)

Please tell me how to create the executable and run this code. I am stuck here for quite some time now.

edit retag flag offensive close merge delete


can you please try to use the code tag (the button where the 1s and 0s are)

ct2034 gravatar image ct2034  ( 2014-06-27 07:02:01 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-06-27 11:11:01 -0500

Abhishek Jha gravatar image

I was able to solve this. I used the rosmake command.

$rosmake {package_name}

It helped create the executable and I was able to run it using rosrun.

edit flag offensive delete link more


So what have you done before instead?

ct2034 gravatar image ct2034  ( 2014-06-28 13:42:28 -0500 )edit

I was using cmake to build the packages. In that case I was not able to create the executable.

Abhishek Jha gravatar image Abhishek Jha  ( 2014-06-30 09:19:48 -0500 )edit

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-06-27 06:47:01 -0500

Seen: 177 times

Last updated: Jun 27 '14