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

Compiling new package causing roscore command not found

asked 2014-02-10 15:34:14 -0600

evk02 gravatar image

updated 2014-02-11 08:27:05 -0600

I'm trying to compile a new package with catkin_make_isolated but after visibly successful installation my I receive roscore and catkin_make, etc command not found. My only option is to reload from an earlier backup to restore my ROS.

The steps I'm following:

  1. Installing roscopter on Hydro from here: ( https://github.com/epsilonorion/rosco... )
    1. I place the roscore source in the /src library
    2. compile mavlink with sudo python setup.py install
  2. Run catkin_make:

    catkin_make_isolated --pkg <my_package_name> --install
    
  3. Roscore is still working until I don't restart, after that command not found

The .bashrc does refer to the install_isolated/setup.bash, still no roscore or catkin_make, etc

edit retag flag offensive close merge delete

Comments

Which OS are you running? Have you installed ROS from debs or from source?

ahendrix gravatar image ahendrix  ( 2014-02-10 19:05:33 -0600 )edit

Sorry, I just saw this comment. The issue already got resolved (see details below), but in case others would read this later here is the answer to your question: OS: Raspbian Wheezy on a Raspberry Pi ROS is compiled from source

evk02 gravatar image evk02  ( 2014-02-12 05:29:08 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-02-11 08:06:43 -0600

evk02 gravatar image

updated 2014-02-11 09:36:43 -0600

ahendrix gravatar image

It seems there was/is an issue with the roscopter install instructions ( https://github.com/epsilonorion/rosco... ):

...

  • Navigate back to repo folder
  • Checkout mavlink using submodule (shown below), or create a symlink to an existing mavlink build.
    • Run command 'git submodule init'
    • Run command 'git submodule update'
  • To build mavlink, navigate to the "pymavlink" folder and run the command "sudo python setup.py install".

...

If you follow the above instructions word by word then the mavlink folder will be created in the roscopter folder causing the above issue. You actually need to move the mavlink folder to roscopter/src and then compile it. It is strange that the compile did run through fine but resulted in ros setup files being changed, but in any way this seemed to solve it.

The instructions correctly should state:

...

  • Navigate back to repo folder
  • Navigate to src folder
  • Checkout mavlink using submodule (shown below), or create a symlink to an existing mavlink build.

...

edit flag offensive delete link more

Comments

You should probably file this as a bug against roscopter if you haven't yet.

ahendrix gravatar image ahendrix  ( 2014-02-11 08:08:19 -0600 )edit

Yes, I have already raised this question there too and now I'm asking them to update the instructions (see https://github.com/epsilonorion/roscopter/issues/2). Thanks.

evk02 gravatar image evk02  ( 2014-02-11 08:13:39 -0600 )edit
1

answered 2014-02-10 19:10:18 -0600

ahendrix gravatar image

If you're building this as part of a complete installation of ROS from source, you probably shouldn't be using the --pkg option to catkin_make_isolated. I suspect it's compiling just that package and replacing your ROS install with only the package you specify.

Try building with:

catkin_make_isolated --install
edit flag offensive delete link more

Comments

Actually it looks that things go south even before I would get to the catkin-make-isolated --pkg part. As soon as I compile mavlink (see instal instructions on Hydro here : https://github.com/epsilonorion/roscopter/wiki ) and restart there is no catkin_make or roscore, etc.

evk02 gravatar image evk02  ( 2014-02-11 07:41:01 -0600 )edit

It sounds like something you're doing along the way is accidentally overwriting the setup files. Try doing an `ls -l` on install_isolated/setup.bash after every installation step, and look for changes in size and timestamp.

ahendrix gravatar image ahendrix  ( 2014-02-11 07:48:20 -0600 )edit

You are right, I think I just figured it out. There was an error in the roscopter package install instructions - see details in my answer below.

evk02 gravatar image evk02  ( 2014-02-11 08:01:48 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2014-02-10 15:34:14 -0600

Seen: 1,266 times

Last updated: Feb 11 '14