Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Catkin command not found

Tags:

ros

catkin

I have installed ROS indigo and gazebo2 packages in Ubuntu 14.04.5. When I try to use catkin command, I get:

catkin_init_workspace : command not found

So, I tried to install catkin, it displays that ros-indigo-catkin is the latest version.

All I did was,

$ sudo apt-get install ros-indigo-desktop-full

$ sudo apt-get install gazebo2.<They're installed perfectly>

After this, I am getting catkin issue.

Help needed. Someone please find a way to fix this issue.

like image 975
Kathiravan Natarajan Avatar asked Dec 20 '16 04:12

Kathiravan Natarajan


People also ask

Where can I run catkin?

Usage. You should always call catkin_make in the root of your catkin workspace, assuming your catkin workspace is in ~/catkin_ws: $ cd ~/catkin_ws $ catkin_make.

Where is catkin located?

A catkin workspace is a folder where you modify, build, and install catkin packages. It is specified in REP 128. The following is the recommended and typical catkin workspace layout: workspace_folder/ -- WORKSPACE src/ -- SOURCE SPACE CMakeLists.


2 Answers

If the workspace is setup, you properly sourced ROS as stated above, and if catkin_make works, but catkin build doesn't work do this:

sudo apt install python3-catkin-tools python3-osrf-pycommon

This is a catkin-tools dependency which was delinked in Ubuntu 20.04 so it has to be manually specified to be installed.

like image 97
drewlufkin Avatar answered Sep 22 '22 06:09

drewlufkin


Had almost the same issue when i tried to run this command (please refer to the pics attached).

$ catkin build

Screenshot for solution applied to solve catkin build error
I solved it by installing catkin ROS build system using the command below (references attached in the links and pictures attached). Screenshot for catkin build error

$ sudo apt-get install ros-kinetic-catkin python-catkin-tools 
like image 41
Arafat Mukasa Avatar answered Sep 19 '22 06:09

Arafat Mukasa