Closed versavel closed 1 year ago
Hi @versavel
I think this is related to something in your installation, but it is strange. I will check it. Did you execute rosdep in the workspace? (rosdep install --from-paths src --ignore-src -r -y
in your workspace root)
yes, I did.
When I posted the output above, I had already deactivated conda, but not deleted the build, install, and log directories. When doing a clean build, I got different errors. I have also tried to use the humble-devel branch code. No luck with that either.
I currently have the errors below. Anything else I could try, or may have overlooked ?
Thanks.
~/bookros2_ws$ colcon build --symlink-install
Starting >>> launch_pal
Starting >>> pmb2_controller_configuration
Starting >>> pal_gripper_controller_configuration
Starting >>> hey5_description
Starting >>> pmb2_maps
Starting >>> urdf_test
Starting >>> pal_gazebo_worlds
Starting >>> br2_tracking_msgs
Starting >>> br2_basics
Starting >>> br2_bt_bumpgo
Starting >>> br2_bt_patrolling
Starting >>> br2_fsm_bumpgo_cpp
Starting >>> br2_fsm_bumpgo_py
Starting >>> br2_navigation
Starting >>> br2_tf2_detector
Starting >>> br2_tiago
Starting >>> br2_vff_avoidance
Starting >>> groot
Finished <<< pmb2_controller_configuration [0.88s]
Finished <<< pal_gripper_controller_configuration [0.89s]
Starting >>> tiago_controller_configuration
Finished <<< pmb2_maps [0.92s]
Starting >>> pmb2_2dnav
Finished <<< hey5_description [0.96s]
--- stderr: launch_pal
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
---
Finished <<< launch_pal [1.05s]
--- stderr: br2_fsm_bumpgo_py
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
---
Finished <<< br2_fsm_bumpgo_py [1.02s]
Finished <<< br2_tiago [1.04s]
Finished <<< br2_navigation [1.09s]
Finished <<< urdf_test [1.21s]
Starting >>> pmb2_description
Starting >>> pal_gripper_description
Finished <<< pmb2_2dnav [1.60s]
Starting >>> tiago_2dnav
Starting >>> pmb2_navigation
Finished <<< pal_gripper_description [1.75s]
Starting >>> pal_gripper
Finished <<< tiago_controller_configuration [2.11s]
Finished <<< tiago_2dnav [0.92s]
Starting >>> tiago_navigation
Finished <<< pmb2_navigation [0.97s]
Finished <<< pal_gripper [0.81s]
Finished <<< pmb2_description [2.68s]
Starting >>> tiago_description
Starting >>> pmb2_bringup
Finished <<< br2_tracking_msgs [4.24s]
Starting >>> br2_tracking
Finished <<< tiago_navigation [0.91s]
Finished <<< pmb2_bringup [1.02s]
Starting >>> pmb2_robot
Finished <<< pal_gazebo_worlds [5.13s]
Finished <<< pmb2_robot [0.92s]
Finished <<< tiago_description [2.20s]
Starting >>> tiago_bringup
Starting >>> tiago_moveit_config
Finished <<< tiago_moveit_config [1.14s]
Finished <<< tiago_bringup [1.23s]
Starting >>> tiago_gazebo
Starting >>> tiago_robot
Finished <<< tiago_robot [0.66s]
Finished <<< tiago_gazebo [1.79s]
Starting >>> tiago_simulation
Finished <<< tiago_simulation [0.68s]
Finished <<< br2_fsm_bumpgo_cpp [10.2s]
Finished <<< br2_basics [10.4s]
--- stderr: groot
/home/tripel/bookros2_ws/src/ThirdParty/Groot/QtNodeEditor/src/ConnectionStyle.cpp: In member function ‘QColor QtNodes::ConnectionStyle::normalColor(QString) const’:
/home/tripel/bookros2_ws/src/ThirdParty/Groot/QtNodeEditor/src/ConnectionStyle.cpp:169:9: warning: ‘void qsrand(uint)’ is deprecated: use QRandomGenerator instead [-Wdeprecated-declarations]
169 | qsrand(hash);
| ~~~~~~^~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qcolor.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/QColor:1,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/QtNodeEditor/include/nodes/internal/ConnectionStyle.hpp:3,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/QtNodeEditor/src/ConnectionStyle.cpp:1:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1273:81: note: declared here
1273 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X_5_15("use QRandomGenerator instead") void qsrand(uint seed);
| ^~~~~~
/home/tripel/bookros2_ws/src/ThirdParty/Groot/QtNodeEditor/src/ConnectionStyle.cpp:170:26: warning: ‘int qrand()’ is deprecated: use QRandomGenerator instead [-Wdeprecated-declarations]
170 | std::size_t hue = qrand() % hue_range;
| ~~~~~^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qcolor.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/QColor:1,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/QtNodeEditor/include/nodes/internal/ConnectionStyle.hpp:3,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/QtNodeEditor/src/ConnectionStyle.cpp:1:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1274:80: note: declared here
1274 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X_5_15("use QRandomGenerator instead") int qrand();
| ^~~~~
/home/tripel/bookros2_ws/src/ThirdParty/Groot/QtNodeEditor/src/NodeGeometry.cpp: In member function ‘unsigned int QtNodes::NodeGeometry::portWidth(QtNodes::PortType) const’:
/home/tripel/bookros2_ws/src/ThirdParty/Groot/QtNodeEditor/src/NodeGeometry.cpp:286:49: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
286 | width = std::max(unsigned(_fontMetrics.width(name)), width);
| ~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/QFontMetrics:1,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/QtNodeEditor/include/nodes/internal/NodeGeometry.hpp:6,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/QtNodeEditor/src/NodeGeometry.cpp:1:
/usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
106 | int width(const QString &, int len = -1) const;
| ^~~~~
/home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_editor.cpp: In member function ‘void SidepanelEditor::on_buttonUpload_clicked()’:
/home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_editor.cpp:302:38: warning: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl [-Wdeprecated-declarations]
302 | stream << doc.toString(4) << endl;
| ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:49,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qcborcommon.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qcborvalue.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qjsonvalue.h:46,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qjsonobject.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/QJsonObject:1,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/./QtNodeEditor/include/nodes/internal/Node.hpp:7,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/./QtNodeEditor/include/nodes/Node:1,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/bt_editor_base.h:9,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/XML_utilities.hpp:5,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_editor.h:8,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_editor.cpp:1:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextstream.h:293:75: note: declared here
293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
| ^~~~
/home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_editor.cpp:302:38: warning: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl [-Wdeprecated-declarations]
302 | stream << doc.toString(4) << endl;
| ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:49,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qcborcommon.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qcborvalue.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qjsonvalue.h:46,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qjsonobject.h:43,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/QJsonObject:1,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/./QtNodeEditor/include/nodes/internal/Node.hpp:7,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/./QtNodeEditor/include/nodes/Node:1,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/bt_editor_base.h:9,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/XML_utilities.hpp:5,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_editor.h:8,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_editor.cpp:1:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextstream.h:293:75: note: declared here
293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
| ^~~~
/home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_monitor.cpp: In member function ‘bool SidepanelMonitor::getTreeFromServer()’:
/home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_monitor.cpp:131:30: warning: ‘void zmq::detail::socket_base::setsockopt(int, const void*, size_t)’ is deprecated: from 4.7.0, use `set` taking option from zmq::sockopt [-Wdeprecated-declarations]
131 | zmq_client.setsockopt(ZMQ_RCVTIMEO,&timeout_ms, sizeof(int) );
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_monitor.h:5,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_monitor.cpp:1:
/usr/include/zmq.hpp:1676:10: note: declared here
1676 | void setsockopt(int option_, const void *optval_, size_t optvallen_)
| ^~~~~~~~~~
/home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_monitor.cpp: In member function ‘void SidepanelMonitor::on_Connect()’:
/home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_monitor.cpp:223:43: warning: ‘void zmq::detail::socket_base::setsockopt(int, const void*, size_t)’ is deprecated: from 4.7.0, use `set` taking option from zmq::sockopt [-Wdeprecated-declarations]
223 | _zmq_subscriber.setsockopt(ZMQ_SUBSCRIBE, "", 0);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_monitor.h:5,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_monitor.cpp:1:
/usr/include/zmq.hpp:1676:10: note: declared here
1676 | void setsockopt(int option_, const void *optval_, size_t optvallen_)
| ^~~~~~~~~~
/home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_monitor.cpp:224:43: warning: ‘void zmq::detail::socket_base::setsockopt(int, const void*, size_t)’ is deprecated: from 4.7.0, use `set` taking option from zmq::sockopt [-Wdeprecated-declarations]
224 | _zmq_subscriber.setsockopt(ZMQ_RCVTIMEO,&timeout_ms, sizeof(int) );
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_monitor.h:5,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_monitor.cpp:1:
/usr/include/zmq.hpp:1676:10: note: declared here
1676 | void setsockopt(int option_, const void *optval_, size_t optvallen_)
| ^~~~~~~~~~
/home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_replay.cpp: In member function ‘void SidepanelReplay::updateTableModel(const AbsBehaviorTree&)’:
/home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_replay.cpp:106:30: warning: ‘QString& QString::sprintf(const char*, ...)’ is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations]
106 | timestamp.sprintf("%.3f", trans.timestamp - first_timestamp);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qframe.h:44,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QFrame:1,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_replay.h:5,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_replay.cpp:1:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here
393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
| ^~~~~~~
/home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_replay.cpp:109:30: warning: ‘QString& QString::sprintf(const char*, ...)’ is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations]
109 | timestamp.sprintf("absolute time: %.3f", trans.timestamp);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qframe.h:44,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QFrame:1,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_replay.h:5,
from /home/tripel/bookros2_ws/src/ThirdParty/Groot/bt_editor/sidepanel_replay.cpp:1:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here
393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
| ^~~~~~~
---
Finished <<< groot [12.8s]
Finished <<< br2_tf2_detector [13.3s]
Finished <<< br2_bt_bumpgo [13.5s]
Finished <<< br2_bt_patrolling [20.3s]
Finished <<< br2_vff_avoidance [20.7s]
Finished <<< br2_tracking [21.5s]
Summary: 35 packages finished [26.0s]
3 packages had stderr output: br2_fsm_bumpgo_py groot launch_pal
I don't see errors, only warnings in Groot. I think you can continue with this. Yeah, Conda is a problem sometimes.
The "3 packages had stderr output" message confused me.
I installed and used an official OSRF ROS2 humble fulldesktop docker image to build the workspace and got the same summary output. So my installation should be fine.
I will close the issue and contine to the next chapter in the book :)
Thank you, Francisco !
Solution : Deactivate Conda AND do a clean build.
Yes!! Conda is always a problem for ROS :disappointed:
When attempting to build the workspace as described in chapter 1.1.3, I get the following output with errors. I tried to downgrade the setuptools (pip install setuptools==58.2.0) as that resolved issues I had building the ROS2 tutorial examples in a ROS2 Humble "base" docker container on a RPi v4B. But that doesn't work here with ROS2 Humble "Desktop" installed on AMD64 Ubuntu Jammy machine.
Anything else I could try to successfully build the workspace ?
Thanks