You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 31, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on May 31, 2025. It is now read-only.
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.append(os.path.abspath('.'))
I get a full documentation when I build locally on my PC with rosdoc_lite tf2_ros -o test_doc from the root folder of the repository. So the documentation script itself looks fine.
Looking closer at the import error it's failing on importing _tf2 which is the library wrapped c++ code. Which is not built in the rosdoc builds.
03:17:03 /tmp/ws/src/geometry2/tf2_ros/doc/tf2_ros.rst:44: WARNING: autodoc: failed to import exception u'TypeException' from module u'tf2_ros.buffer_interface'; the following exception was raised:
03:17:03 Traceback (most recent call last):
03:17:03 File "/usr/lib/python2.7/dist-packages/sphinx/ext/autodoc.py", line 658, in import_object
03:17:03 __import__(self.modname)
03:17:03 File "/tmp/ws/install_isolated/lib/python2.7/dist-packages/tf2_ros/__init__.py", line 38, in <module>
03:17:03 from tf2_py import *
03:17:03 File "/tmp/ws/install_isolated/lib/python2.7/dist-packages/tf2_py/__init__.py", line 38, in <module>
03:17:03 from ._tf2 import *
03:17:03 ImportError: No module named _tf2
It probably works locally because the package has already been built and consequently python can import the library.
I suspect switching away from the autoexception and autoclass might resolve this.
Activity
tfoote commentedon Nov 12, 2018
This is likely related to #250
MichaelGrupp commentedon Feb 20, 2019
@tfoote
autodocfails to do imports on the buildfarm. E.g. here: http://build.ros.org/job/Mdoc__geometry2__ubuntu_bionic_amd64/28/console#console-section-3Maybe the import path needs to be set here?
geometry2/tf2_ros/doc/conf.py
Lines 16 to 19 in cd55e45
I get a full documentation when I build locally on my PC with
rosdoc_lite tf2_ros -o test_docfrom the root folder of the repository. So the documentation script itself looks fine.tfoote commentedon Feb 20, 2019
Thanks @MichaelGrupp for looking into this.
Looking closer at the import error it's failing on importing _tf2 which is the library wrapped c++ code. Which is not built in the rosdoc builds.
It probably works locally because the package has already been built and consequently python can import the library.
I suspect switching away from the autoexception and autoclass might resolve this.
Remove usage of deprecated rclcpp::Duration constructor (ros#340)
sloretz commentedon May 31, 2025
ROS 1 is end-of-life (EOL) as of today, May 31st 2025. I am archiving this repository because:
If you still rely on ROS 1, read this page to learn about your options.