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

error with roslaunch after build using catkin_make_isolated

asked 2018-04-22 03:33:52 -0500

Spartan_007 gravatar image

updated 2018-04-22 13:06:59 -0500

I installed cartographer as recommended here . Then, I installed rosaria, rosaria_client in the same workspace using ninja. Then, when I went for roslaunch rosaria_client rosaria_client.launch I got following error.

   started roslaunch server http://anindya-Latitude-E7270:40633/

SUMMARY
========

PARAMETERS
 * /RosAria/port: /dev/ttyUSB0
 * /rosdistro: indigo
 * /rosversion: 1.11.21

NODES
  /
    RosAria (rosaria/RosAria)
    RosAria_interface (rosaria_client/interface)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[RosAria-1]: started with pid [14198]
ERROR: cannot launch node of type [rosaria_client/interface]: can't locate node [interface] in package [rosaria_client]

My ros package path shows

echo $ROS_PACKAGE_PATH
/home/anindya/catkin_test_2/install_isolated/share:/home/anindya/catkin_test_2/install_isolated/stacks:/opt/ros/indigo/share:/opt/ros/indigo/stacks

I also added

install(DIRECTORIES
 launch
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}

in this package's CMakeLists.txt, but, no result. I am not sure what could be the reason behind this problem.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-04-23 01:07:24 -0500

mgruhler gravatar image

updated 2018-04-23 03:32:23 -0500

Seems like the executable hasn't been built properly. The launch file is working, it is just not finding the node. Have there been any problems during compilation? Can you find an executable interface in you install space?

Looking at the CMakeLists.txt of Rosaria by pentang, branch master (this is what I find, but you haven't specified where you got it from), there are no install tags. You need to install the node as well, similar to what you did for the launch files.

On an unrelated note: Seeing that you are still using Indigo, I would recommend to update to kinetic, or to the upcoming melodic...


Edit

I'd recommend you go through the catkin documentation, especially the part about installing C++ executables. There the respective commands are shown and explained.

edit flag offensive delete link more

Comments

I tried the following after add_executable and target_link_libraries

install(FILES src/go_three_second  LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}     )

this Error come:

 CMake Error at cmake_install.cmake:133 (file): file INSTALL cannot find  "/home/anindya/catkin_test_2/src
Spartan_007 gravatar image Spartan_007  ( 2018-04-23 03:13:01 -0500 )edit

see edit above.

mgruhler gravatar image mgruhler  ( 2018-04-23 03:32:29 -0500 )edit

thanks a lot. It works now.

Spartan_007 gravatar image Spartan_007  ( 2018-04-23 04:45:58 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2018-04-22 03:33:52 -0500

Seen: 587 times

Last updated: Apr 23 '18