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

Catkin naming conventions issue

asked 2020-10-12 13:13:03 -0500

Bjb0403 gravatar image

updated 2020-10-12 13:38:04 -0500

gvdhoorn gravatar image

I'm having trouble creating a package called 'local_frontiers'

As far as i know, i'm following the correct naming conventions, i have no idea why i'm getting this error.

$ catkin_create_pkg ​local_frontiers rospy roscpp
Traceback (most recent call last):
  File "/usr/bin/catkin_create_pkg", line 11, in <module>
    load_entry_point('catkin-pkg==0.4.22', 'console_scripts', 'catkin_create_pkg')()
  File "/usr/lib/python2.7/dist-packages/catkin_pkg/cli/create_pkg.py", line 62, in main
    boost_comps=args.boost_comps)
  File "/usr/lib/python2.7/dist-packages/catkin_pkg/package_templates.py", line 143, in _create_package_template
    urls=[])
  File "/usr/lib/python2.7/dist-packages/catkin_pkg/package_templates.py", line 55, in __init__
    self.validate()
  File "/usr/lib/python2.7/dist-packages/catkin_pkg/package.py", line 316, in validate
    raise InvalidPackage('\n'.join(errors), self.filename)
catkin_pkg.package.InvalidPackage: Package name "​local_frontiers" does not follow naming conventions
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2020-10-13 01:11:56 -0500

mgruhler gravatar image

Seems you added a zero-width space character right in front of the local_frontiers name. catkin_create_pkg (rightfully so) only accepts lower and upper case letters, as well as numbers at the start of the package name.

(you see the zero-width space when you c'n'p the command you posted above, save it to a text file and open this with e.g. vim: catkin_create_pkg <200b>local_frontiers rospy roscpp)

edit flag offensive delete link more

Comments

Ha, nice.

@Bjb0403: did you copy-paste the package name from a .pdf or similar file perhaps?

gvdhoorn gravatar image gvdhoorn  ( 2020-10-13 03:03:36 -0500 )edit

must have been something like that. I'd say there is no way to accidentally get that character typed in the terminal. If it is possible at all...

mgruhler gravatar image mgruhler  ( 2020-10-13 03:50:48 -0500 )edit
1

Or it's a test, to see whether you are paying attention and the ROS Answers crew can figure this one out.

gvdhoorn gravatar image gvdhoorn  ( 2020-10-13 03:54:15 -0500 )edit

Typed it out, it's a custom package i'm working on. Bizzare.

Bjb0403 gravatar image Bjb0403  ( 2020-10-13 04:39:21 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-10-12 13:13:03 -0500

Seen: 801 times

Last updated: Oct 13 '20