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

Cannot find executable ROS is using [closed]

asked 2020-07-23 10:32:55 -0500

savritzer gravatar image

Hello,

I am running ROS 1.12.14 on a Ubuntu 16.04.12 (kernel version: 4.15.0-107-generic, gcc version: 5.4.0 20160609). I am trying to modify one of my nodes, but after a few tries I realized the executable I was modifying is not the one being used by ROS (the program even runs if I just delete the executable completely) and I cannot find the other version of this exe that is actually being used. I was wondering if there is a way of figuring out which executable ROS is using?

Thank you!

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by savritzer
close date 2020-07-24 13:12:11.441480

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-07-23 13:00:35 -0500

kosmastsk gravatar image

Try roscd package_name to find the path where the package used is installed and the source code can be found there. Probably what you are using has been also installed using apt-get (or something similar) and a different executable is used

edit flag offensive delete link more

Comments

1

Also, you can also try roscd outside the catkin_ws of your node (i.e., do not source source devel/setup.bash your workspace) to find the location of the pre-installed package (if any).

praskot gravatar image praskot  ( 2020-07-23 16:38:31 -0500 )edit

I tried the roscd command and it leads me to the package location I expected (where the executables I was modifying where). It doesn't seem to find any other version of this package.

savritzer gravatar image savritzer  ( 2020-07-24 10:51:43 -0500 )edit

Did you build your workspace again after making any changes or even deleting the executable?

kosmastsk gravatar image kosmastsk  ( 2020-07-24 11:28:59 -0500 )edit

I just tried rebuilding it with catkin_make clean and the executables don't get compiled and my code can't find them (as I would expect). If I try just catkin_make after that the executables are made, but then I run into the original problem where it looks like these are not the executables being used.

savritzer gravatar image savritzer  ( 2020-07-24 11:45:24 -0500 )edit
1

List of things you can try:

  • Delete the build and devel folders and catkin_make again (hopefully you do not have too many packages in the workspace)
  • Or create another temporary catkin_ws and compile the package over there.
  • Ensure that you haven't changed the executable name in the CMakeLists and ensure the right source code and libraries are linked to it.
praskot gravatar image praskot  ( 2020-07-24 12:23:22 -0500 )edit
1

Deleting the executables with catkin_make clean and then remaking them with just catkin_make seems to work! Thank you for the help!

savritzer gravatar image savritzer  ( 2020-07-24 13:11:54 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2020-07-23 10:32:55 -0500

Seen: 85 times

Last updated: Jul 23 '20