Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to create a catkin ws and build packahes with catkin build

Dear All,

I tried to create a catkin ws using catkin init then enter catkin build and I got the following error:

emeric@emeric-desktop:~/catkin_planning_ws$ ls src hector_navigation waypoint_ctl emeric@emeric-desktop:~/catkin_planning_ws$

catkin build

Profile: default Extending: [env] /home/emeric/catkin_wsp/devel:/opt/ros/kinetic

Workspace: /home/emeric

Source Space: [exists] /home/emeric/src Log Space: [missing] /home/emeric/logs Build Space: [exists] /home/emeric/build Devel Space: [exists] /home/emeric/devel Install Space: [unused] /home/emeric/install

DESTDIR: [unused] None

Devel Space Layout: linked

Install Space Layout: None


Additional CMake Args: DCMAKE_BUILT_TYPE=Release Additional Make Args: None Additional catkin Make Args: None Internal Make Job Server: True

Cache Job Environments: False

Whitelisted Packages: None

Blacklisted Packages: None

Workspace configuration appears valid.


Traceback (most recent call last):
File "/usr/bin/catkin", line 9, in <module> load_entry_point('catkin-tools==0.4.4','console_scripts', 'catkin')() File "/usr/lib/python2.7/dist-packages/catkin_tools/commands/catkin.py", line 267, in main catkin_main(sysargs)
File "/usr/lib/python2.7/dist-packages/catkin_tools/commands/catkin.py",line 262, in catkin_main sys.exit(args.main(args) or 0) File "/usr/lib/python2.7/dist-packages/catkin_tools/verbs/catkin_build/cli.py", line 420, in main summarize_build=opts.summarize # Can be True, False, or None File "/usr/lib/python2.7/dist-packages/catkin_tools/verbs/catkin_build/build.py", line 283, in build_isolated_workspace workspace_packages = find_packages(context.source_space_abs,exclude_subspaces=True, warnings=[])
File "/usr/lib/python2.7/dist-packages/catkin_pkg/packages.py",line 86, in find_packages:packages = find_packages_allowing_duplicates(basepath, find_packages_allowing_duplicates(basepath, exclude_paths=exclude_paths, exclude_subspaces=exclude_subspaces,warnings=warnings)
File "/usr/lib/python2.7/dist-packages/catkin_pkg/packages.py", line 146, in find_packages_allowing_duplicates xml, filename=filename, warnings=warnings)
File "/usr/lib/python2.7/dist-packages/catkin_pkg/package.py",line 509, in parse_package_string raise InvalidPackage('The manifest must contain a single "package" root tag') catkin_pkg.package.InvalidPackage: The manifest must contain a single "package" root tag

Besides I do not know why the build and devel directories are created in the /home/emeric directory?

However if I enter catkin_make, everything works fine. Can you tell me whay I am missing here?

How to create a catkin ws and build packahes with catkin build

Dear All,

I tried to create a catkin ws using catkin init then enter catkin build and I got the following error:

emeric@emeric-desktop:~/catkin_planning_ws$
 ls src hector_navigation  waypoint_ctl
  emeric@emeric-desktop:~/catkin_planning_ws$

catkin build

emeric@emeric-desktop:~/catkin_planning_ws$ catkin build --------------------------------------------------------------------------- Profile: default Extending: [env] /home/emeric/catkin_wsp/devel:/opt/ros/kinetic

/home/emeric/catkin_wsp/devel:/opt/ros/kinetic Workspace: /home/emeric

/home/emeric --------------------------------------------------------------------------- Source Space: [exists] /home/emeric/src Log Space: [missing] /home/emeric/logs Build Space: [exists] /home/emeric/build Devel Space: [exists] /home/emeric/devel Install Space: [unused] /home/emeric/install

/home/emeric/install DESTDIR: [unused] None

None --------------------------------------------------------------------------- Devel Space Layout: linked

linked Install Space Layout: None


None ---------------------------------------------------------- --------------------------------------------------------------------------- Additional CMake Args: DCMAKE_BUILT_TYPE=Release Additional Make Args: None Additional catkin Make Args: None Internal Make Job Server: True

True Cache Job Environments: False

False --------------------------------------------------------------------------- Whitelisted Packages: None

None Blacklisted Packages: None

None --------------------------------------------------------------------------- Workspace configuration appears valid.


valid. ----------------------------------------------------------- --------------------------------------------------------------------------- Traceback (most recent call last):
File "/usr/bin/catkin", line 9, in <module> load_entry_point('catkin-tools==0.4.4','console_scripts', 'catkin')() File "/usr/lib/python2.7/dist-packages/catkin_tools/commands/catkin.py", line 267, in main catkin_main(sysargs)
File "/usr/lib/python2.7/dist-packages/catkin_tools/commands/catkin.py",line 262, in catkin_main sys.exit(args.main(args) or 0) File "/usr/lib/python2.7/dist-packages/catkin_tools/verbs/catkin_build/cli.py", line 420, in main summarize_build=opts.summarize # Can be True, False, or None File "/usr/lib/python2.7/dist-packages/catkin_tools/verbs/catkin_build/build.py", line 283, in build_isolated_workspace workspace_packages = find_packages(context.source_space_abs,exclude_subspaces=True, warnings=[])
File "/usr/lib/python2.7/dist-packages/catkin_pkg/packages.py",line 86, in find_packages:packages = find_packages_allowing_duplicates(basepath, find_packages_allowing_duplicates(basepath, exclude_paths=exclude_paths, exclude_subspaces=exclude_subspaces,warnings=warnings)
File "/usr/lib/python2.7/dist-packages/catkin_pkg/packages.py", line 146, in find_packages_allowing_duplicates xml, filename=filename, warnings=warnings)
File "/usr/lib/python2.7/dist-packages/catkin_pkg/package.py",line 509, in parse_package_string raise InvalidPackage('The manifest must contain a single "package" root tag') catkin_pkg.package.InvalidPackage: The manifest must contain a single "package" root tag

tag

Besides I do not know why the build and devel directories are created in the /home/emeric directory?

However if I enter catkin_make, everything works fine. Can you tell me whay I am missing here?

How to create a catkin ws and build packahes with catkin build

Dear All,

I tried to create a catkin ws using catkin init then enter catkin build and I got the following error:

emeric@emeric-desktop:~/catkin_planning_ws$
ls src hector_navigation  waypoint_ctl
emeric@emeric-desktop:~/catkin_planning_ws$
catkin build
--------------------------------------------------------------------------- 
Profile:                            default
Extending:             [env]  /home/emeric/catkin_wsp/devel:/opt/ros/kinetic
Workspace:                    /home/emeric
--------------------------------------------------------------------------- 
Source Space:        [exists]  /home/emeric/src 
Log Space:        [missing] /home/emeric/logs 
Build Space:        [exists]   /home/emeric/build 
Devel Space:        [exists] /home/emeric/devel 
Install Space:      [unused] /home/emeric/install

DESTDIR:            [unused] None
---------------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
----------------------------------------------------------
--------------------------------------------------------------------------- 
Additional CMake Args:       DCMAKE_BUILT_TYPE=Release 
Additional  Make Args:        None 
Additional catkin Make Args: None 
Internal Make  Job Server:    True
Cache Job Environments:      False
--------------------------------------------------------------------------- 
Whitelisted Packages:        None
Blacklisted Packages:        None
---------------------------------------------------------------------------

Workspace configuration appears valid.
-----------------------------------------------------------
--------------------------------------------------------------------------- 
Traceback (most recent call last):  
 File "/usr/bin/catkin", line 9, in <module>
     load_entry_point('catkin-tools==0.4.4','console_scripts', 'catkin')()   File "/usr/lib/python2.7/dist-packages/catkin_tools/commands/catkin.py", line 267, in main
     catkin_main(sysargs)   
 File "/usr/lib/python2.7/dist-packages/catkin_tools/commands/catkin.py",line 262, in catkin_main sys.exit(args.main(args) or 0)
 File "/usr/lib/python2.7/dist-packages/catkin_tools/verbs/catkin_build/cli.py", line 420, in main summarize_build=opts.summarize  # Can be True, False, or None   File
 "/usr/lib/python2.7/dist-packages/catkin_tools/verbs/catkin_build/build.py", line 283, in build_isolated_workspace
     workspace_packages = find_packages(context.source_space_abs,exclude_subspaces=True, warnings=[])  
 File "/usr/lib/python2.7/dist-packages/catkin_pkg/packages.py",line 86, in find_packages:packages = find_packages_allowing_duplicates(basepath, find_packages_allowing_duplicates(basepath, exclude_paths=exclude_paths, exclude_subspaces=exclude_subspaces,warnings=warnings)   
 File "/usr/lib/python2.7/dist-packages/catkin_pkg/packages.py", line 146, in find_packages_allowing_duplicates xml, filename=filename, warnings=warnings)   
 File "/usr/lib/python2.7/dist-packages/catkin_pkg/package.py",line 509, in parse_package_string raise InvalidPackage('The manifest must contain a single "package" root  tag')
 catkin_pkg.package.InvalidPackage: The manifest must contain a single "package" root tag

Besides I do not know understand why the workspace is set to /home/emeric and not /home/emeric/catkin_planning_ws ? Because the build and devel directories are created in the /home/emeric directory? /home/emeric.

However if I enter catkin_make, everything works fine. Can you tell me whay I am missing here?

Thank you very much

How to create a catkin ws and build packahes with catkin build

Dear All,

I tried to create a catkin ws using catkin init then enter catkin build and I got the following error:

emeric@emeric-desktop:~/catkin_planning_ws$
ls src hector_navigation  waypoint_ctl
emeric@emeric-desktop:~/catkin_planning_ws$
catkin build
--------------------------------------------------------------------------- 
Profile:                            default
Extending:             [env]  /home/emeric/catkin_wsp/devel:/opt/ros/kinetic
Workspace:                    /home/emeric
--------------------------------------------------------------------------- 
Source Space:        [exists]  /home/emeric/src 
Log Space:        [missing] /home/emeric/logs 
Build Space:        [exists]   /home/emeric/build 
Devel Space:        [exists] /home/emeric/devel 
Install Space:      [unused] /home/emeric/install

DESTDIR:            [unused] None
---------------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
----------------------------------------------------------
--------------------------------------------------------------------------- 
Additional CMake Args:       DCMAKE_BUILT_TYPE=Release 
Additional  Make Args:        None 
Additional catkin Make Args: None 
Internal Make  Job Server:    True
Cache Job Environments:      False
--------------------------------------------------------------------------- 
Whitelisted Packages:        None
Blacklisted Packages:        None
---------------------------------------------------------------------------

Workspace configuration appears valid.
-----------------------------------------------------------
--------------------------------------------------------------------------- 
Traceback (most recent call last):  
 File "/usr/bin/catkin", line 9, in <module>
     load_entry_point('catkin-tools==0.4.4','console_scripts', 'catkin')()   File "/usr/lib/python2.7/dist-packages/catkin_tools/commands/catkin.py", line 267, in main
     catkin_main(sysargs)   
 File "/usr/lib/python2.7/dist-packages/catkin_tools/commands/catkin.py",line 262, in catkin_main sys.exit(args.main(args) or 0)
 File "/usr/lib/python2.7/dist-packages/catkin_tools/verbs/catkin_build/cli.py", line 420, in main summarize_build=opts.summarize  # Can be True, False, or None   File
 "/usr/lib/python2.7/dist-packages/catkin_tools/verbs/catkin_build/build.py", line 283, in build_isolated_workspace
     workspace_packages = find_packages(context.source_space_abs,exclude_subspaces=True, warnings=[])  
 File "/usr/lib/python2.7/dist-packages/catkin_pkg/packages.py",line 86, in find_packages:packages = find_packages_allowing_duplicates(basepath, find_packages_allowing_duplicates(basepath, exclude_paths=exclude_paths, exclude_subspaces=exclude_subspaces,warnings=warnings)   
 File "/usr/lib/python2.7/dist-packages/catkin_pkg/packages.py", line 146, in find_packages_allowing_duplicates xml, filename=filename, warnings=warnings)   
 File "/usr/lib/python2.7/dist-packages/catkin_pkg/package.py",line 509, in parse_package_string raise InvalidPackage('The manifest must contain a single "package" root  tag')
 catkin_pkg.package.InvalidPackage: The manifest must contain a single "package" root tag

Besides I do not understand why the workspace is set to /home/emeric and not /home/emeric/catkin_planning_ws ? Because the build and devel directories are created in /home/emeric.

Can you tell me whay what I am missing here?

Thank you very much