Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to create/find executable when using rosrun.

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

My code is as follows:

#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); spinner.start();

move_group_interface::MoveGroup group("manipulator"); group.setRandomTarget(); group.move(); }

And the CMakeLists.txt for the package ur_moveit_tutorials is as follows (sorry for posting the entire file but I thought it would be best)

cmake_minimum_required(VERSION 2.4.6) include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)

Set the build type. Options are:

Coverage : w/ debug symbols, w/o optimization, w/ code-coverage

Debug : w/ debug symbols, w/o optimization

Release : w/o debug symbols, w/ optimization

RelWithDebInfo : w/ debug symbols, w/ optimization

MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries

set(ROS_BUILD_TYPE RelWithDebInfo)

rosbuild_init()

set the default path for built executables to the "bin" directory

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/src)

set the default path for built libraries to the "lib" directory

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

uncomment if you have defined messages

rosbuild_genmsg()

uncomment if you have defined services

rosbuild_gensrv()

common commands for building c++ executables and libraries

rosbuild_add_library(${PROJECT_NAME} src/example.cpp)

target_link_libraries(${PROJECT_NAME} another_library)

rosbuild_add_boost_directories()

rosbuild_link_boost(${PROJECT_NAME} thread)

rosbuild_add_executable(example examples/example.cpp)

target_link_libraries(example ${PROJECT_NAME})

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.

Unable to create/find executable when using rosrun.

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

My code is as follows:

#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); spinner.start();

move_group_interface::MoveGroup group("manipulator"); group.setRandomTarget(); group.move(); }

And the CMakeLists.txt for the package ur_moveit_tutorials is as follows (sorry for posting the entire file but I thought it would be best)

cmake_minimum_required(VERSION 2.4.6) include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)

Set the build type. Options are:

Coverage : w/ debug symbols, w/o optimization, w/ code-coverage

Debug : w/ debug symbols, w/o optimization

Release : w/o debug symbols, w/ optimization

RelWithDebInfo : w/ debug symbols, w/ optimization

MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries

set(ROS_BUILD_TYPE RelWithDebInfo)

rosbuild_init()

set the default path for built executables to the "bin" directory

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/src)

set the default path for built libraries to the "lib" directory

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

uncomment if you have defined messages

rosbuild_genmsg()

uncomment if you have defined services

rosbuild_gensrv()

common commands for building c++ executables and libraries

rosbuild_add_library(${PROJECT_NAME} src/example.cpp)

target_link_libraries(${PROJECT_NAME} another_library)

rosbuild_add_boost_directories()

rosbuild_link_boost(${PROJECT_NAME} thread)

rosbuild_add_executable(example examples/example.cpp)

target_link_libraries(example ${PROJECT_NAME})

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.

Unable to create/find executable when using rosrun.

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

My code is as follows:

#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); spinner.start();

move_group_interface::MoveGroup group("manipulator"); group.setRandomTarget(); group.move(); }

And the CMakeLists.txt for the package ur_moveit_tutorials is as follows (sorry for posting the entire file but I thought it would be best)

cmake_minimum_required(VERSION 2.4.6) include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

uncomment if you have defined messages

rosbuild_genmsg()

uncomment if you have defined services

rosbuild_gensrv()

common commands for building c++ executables and libraries

rosbuild_add_library(${PROJECT_NAME} src/example.cpp)

target_link_libraries(${PROJECT_NAME} another_library)

rosbuild_add_boost_directories()

rosbuild_link_boost(${PROJECT_NAME} thread)

rosbuild_add_executable(example examples/example.cpp)

target_link_libraries(example ${PROJECT_NAME})

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.

Unable to create/find executable when using rosrun.

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: error:

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

My code The C++ file is as follows:

#include 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); spinner.start();

move_group_interface::MoveGroup group("manipulator"); group.setRandomTarget(); group.move(); }

And the The CMakeLists.txt for the package ur_moveit_tutorials file is as follows (sorry for posting the entire file but I thought it would be best)something like this:

cmake_minimum_required(VERSION 2.4.6) include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)

rosbuild_init()

set the default path for built executables to the "bin" directory

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/src)

set the default path for built libraries to the "lib" directory

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

uncomment if you have defined messages

rosbuild_genmsg()

uncomment if you have defined services

rosbuild_gensrv()

common commands for building c++ executables and libraries

rosbuild_add_library(${PROJECT_NAME} src/example.cpp)

target_link_libraries(${PROJECT_NAME} another_library)

rosbuild_add_boost_directories()

rosbuild_link_boost(${PROJECT_NAME} thread)

rosbuild_add_executable(example examples/example.cpp)

target_link_libraries(example ${PROJECT_NAME})

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.

click to hide/show revision 5
No.5 Revision

Unable to create/find executable when using rosrun.

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="">

#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");

"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); spinner.start();

spinner.start(); move_group_interface::MoveGroup group("manipulator"); group.setRandomTarget(); group.move(); }

}

The CMakeLists.txt file is something like this:

cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)

rosbuild_init()

set include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake) rosbuild_init() #set the default path for built executables to the "bin" directory

directory set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/src)

set ${PROJECT_SOURCE_DIR}/src) #set the default path for built libraries to the "lib" directory

directory set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

uncomment ${PROJECT_SOURCE_DIR}/lib) #uncomment if you have defined messages

rosbuild_genmsg()

uncomment messages #rosbuild_genmsg() #uncomment if you have defined services

rosbuild_gensrv()

services #rosbuild_gensrv() rosbuild_add_executable(lesson_move_group_1 src/lesson_move_group_1.cpp) target_link_libraries(lesson_move_group_1 moveit_move_group_interface)

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.