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

InvalidROSPkgException when running roswtf: no manifest file in roscpp

asked 2013-02-02 04:53:25 -0500

I am trying to run roswtf as described at the end of the http://www.ros.org/wiki/ROS/Tutorials/Getting%20started%20with%20roswtf (beginner tutorial), but it complains about roscpp not having a manifest file:

WARNING(s) in /opt/ros/groovy/share/camera_info_manager/package.xml:
- The test dependency on "rostest" is redundant with: build_depend, run_depend
WARNING(s) in /opt/ros/groovy/share/diagnostic_analysis/package.xml:
- The test dependency on "rosbag" is redundant with: build_depend, run_depend
- The test dependency on "rostest" is redundant with: build_depend
- The test dependency on "diagnostic_msgs" is redundant with: build_depend, run_depend
Package: beginner_tutorials
Traceback (most recent call last):
  File "/opt/ros/groovy/bin/roswtf", line 35, in <module>
    roswtf.roswtf_main()
  File "/opt/ros/groovy/lib/python2.7/dist-packages/roswtf/__init__.py", line 87, in roswtf_main
    _roswtf_main()
  File "/opt/ros/groovy/lib/python2.7/dist-packages/roswtf/__init__.py", line 174, in _roswtf_main
    roswtf.packages.wtf_check(ctx)
  File "/opt/ros/groovy/lib/python2.7/dist-packages/roswtf/packages.py", line 187, in wtf_check
    warning_rule(r, r[0](ctx), ctx)
  File "/opt/ros/groovy/lib/python2.7/dist-packages/roswtf/packages.py", line 68, in manifest_msg_srv_export
    msgs = set(_manifest_msg_srv_export(ctx, 'msg'))
  File "/opt/ros/groovy/lib/python2.7/dist-packages/roswtf/packages.py", line 59, in _manifest_msg_srv_export
    m_file = roslib.manifest.manifest_file(pkg, True)
  File "/opt/ros/groovy/lib/python2.7/dist-packages/roslib/manifest.py", line 118, in manifest_file
    return _manifest_file_by_dir(d, required=required, env=env)
  File "/opt/ros/groovy/lib/python2.7/dist-packages/roslib/manifest.py", line 94, in _manifest_file_by_dir
    """%locals())
roslib.packages.InvalidROSPkgException: 
Package '/opt/ros/groovy/share/roscpp' is improperly configured: no manifest file is present.

What could be the cause of this?

My configuration: Ubuntu 12.10 32b, ROS Groovy

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-02-02 23:25:44 -0500

Devasena Inupakutika gravatar image

Hi,

Try executing roswtf command again after sometime in cd ~/catkin_ws. No errors and warnings this time in static checks summary. I also faced similar problem but when i re-ran it , it went fine. Hope works for you as well.

edit flag offensive delete link more

Comments

You're right, re-running it several times seems to get rid of the problem! I still don't understand why the problem occurred in the first place, however :D

Cristina gravatar image Cristina  ( 2013-02-02 23:37:46 -0500 )edit

Yeah, but if you go through http://www.ros.org/wiki/Manifest and http://msdn.microsoft.com/en-gb/library/windowsazure/jj151528.aspx , and get to know the importance of manifest files, I guess while we run any command like roswtf above, it was searching for manifest.xml file which is not present in

Devasena Inupakutika gravatar image Devasena Inupakutika  ( 2013-02-03 01:35:01 -0500 )edit

at the mentioned location, but package.xml is present. As the XML manifest can be any file in the archive as long as the relationship points to the XML manifest file and the XML manifest file conforms to the schema. So, dynamically establishing this relationship takes a while. Hence, rerunning

Devasena Inupakutika gravatar image Devasena Inupakutika  ( 2013-02-03 01:36:29 -0500 )edit

enables it to read through package.xml which is present. And it runs successfully.

Devasena Inupakutika gravatar image Devasena Inupakutika  ( 2013-02-03 01:37:14 -0500 )edit

@ROS-freak Yeah, that sounds logical enough.

Cristina gravatar image Cristina  ( 2013-02-04 20:58:27 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-02-02 04:53:25 -0500

Seen: 287 times

Last updated: Feb 02 '13