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

catkin_create_pkg: error: argument --rosdistro is required

asked 2019-01-07 16:42:28 -0600

quinnler93 gravatar image

updated 2019-01-08 00:16:59 -0600

mgruhler gravatar image

hi I'm currently working out of Learning Robotics using python - second edition. I'm trying to run this in the terminal $ catkin_create_pkg hello_world std_msgs rospy and what i get back is

usage: catkin_create_pkg [-h] [--meta] [-s [SYS_DEPS [SYS_DEPS ...]]]
                         [-b [BOOST_COMPS [BOOST_COMPS ...]]] [-V PKG_VERSION]
                         [-D DESCRIPTION] [-l LICENSE] [-a AUTHOR]
                         [-m MAINTAINER] --rosdistro ROSDISTRO
                         name [dependencies [dependencies ...]]
catkin_create_pkg: error: argument --rosdistro is required

Does anyone know what I'm doing wrong? running a virtualbox with ubuntu 16.04.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-01-08 00:20:44 -0600

mgruhler gravatar image

You need to tell catkin_create_pkg which ROS distribution you are using. You can do this in two ways:

  1. by explicitely stating it, this is what ther error is telling you. So in your case most probably catkin_create_pkg --rosdistro kinetic your_new_package is what you want.
  2. by implicitely deducing from the already sourced workspace. Most tutorials assume you started by sourcing a workspace (either source /opt/ros/kinetic/setup.bash or whereever your workspace lays, most probably something like source ~/catkin_ws/devel/setup.bash).

What you want to do is most probably solution 2, and you forgot to source the workspace in the terminal (you have to do this in every terminal manually, or add it to your ~/.bashrc) you are calling catkin_create_pkg in.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-01-07 15:47:54 -0600

Seen: 6,852 times

Last updated: Jan 08 '19