catkin_create_pkg: error: argument --rosdistro is required
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.
Asked by quinnler93 on 2019-01-07 16:47:54 UTC
Answers
You need to tell catkin_create_pkg
which ROS distribution you are using.
You can do this in two ways:
- 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. - 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 likesource ~/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.
Asked by mgruhler on 2019-01-08 01:20:44 UTC
Comments