Hi,
I just created a snapcraft for a ROS2 simulation in Foxy. It built correctly (although had some warnings ) But when launching it gives this error:
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) | |
---|---|
[INFO] [launch]: All log files can be found below /home/tgrip/snap/box-bot-ros2/x1/.ros/log/2021-02-18-16-58-18-779835-tgrip-laptop-46672 | |
[INFO] [launch]: Default logging verbosity is set to INFO | |
[INFO] [gzserver-1]: process started with pid [46708] | |
[INFO] [gzclient -2]: process started with pid [46710] | |
[INFO] [spawn_box_bot.py-3]: process started with pid [46712] | |
[spawn_box_bot.py-3] Traceback (most recent call last): | |
[spawn_box_bot.py-3] File “/snap/box-bot-ros2/x1/lib/box_bot_description/spawn_box_bot.py”, line 41, in | |
[spawn_box_bot.py-3] main() | |
[spawn_box_bot.py-3] File “/snap/box-bot-ros2/x1/lib/box_bot_description/spawn_box_bot.py”, line 11, in main | |
[spawn_box_bot.py-3] cli = node.create_client(SpawnEntity, ‘/spawn_entity’) | |
[spawn_box_bot.py-3] File “/snap/box-bot-ros2/x1/opt/ros/foxy/lib/python3.8/site-packages/rclpy/node.py”, line 1248, in create_client | |
[spawn_box_bot.py-3] check_for_type_support(srv_type) | |
[spawn_box_bot.py-3] File “/snap/box-bot-ros2/x1/opt/ros/foxy/lib/python3.8/site-packages/rclpy/type_support.py”, line 29, in check_for_type_support | |
[spawn_box_bot.py-3] msg_type.class.import_type_support() | |
[spawn_box_bot.py-3] File “/snap/box-bot-ros2/x1/opt/ros/foxy/lib/python3.8/site-packages/gazebo_msgs/srv/_spawn_entity.py”, line 369, in import_type_support | |
[spawn_box_bot.py-3] _spawn_entity.Metaclass_SpawnEntity_Request.import_type_support() | |
[spawn_box_bot.py-3] File “/snap/box-bot-ros2/x1/opt/ros/foxy/lib/python3.8/site-packages/gazebo_msgs/srv/_spawn_entity.py”, line 43, in import_type_support | |
[spawn_box_bot.py-3] from geometry_msgs.msg import Pose | |
[spawn_box_bot.py-3] File “/snap/box-bot-ros2/x1/opt/ros/foxy/lib/python3.8/site-packages/geometry_msgs/msg/init.py”, line 3, in | |
[spawn_box_bot.py-3] from geometry_msgs.msg._accel_with_covariance import AccelWithCovariance # noqa: F401 | |
[spawn_box_bot.py-3] File “/snap/box-bot-ros2/x1/opt/ros/foxy/lib/python3.8/site-packages/geometry_msgs/msg/_accel_with_covariance.py”, line 9, in | |
[spawn_box_bot.py-3] import numpy # noqa: E402, I100 | |
[spawn_box_bot.py-3] File “/snap/box-bot-ros2/x1/usr/lib/python3/dist-packages/numpy/init.py”, line 145, in | |
[spawn_box_bot.py-3] from . import lib | |
[spawn_box_bot.py-3] File “/snap/box-bot-ros2/x1/usr/lib/python3/dist-packages/numpy/lib/init.py”, line 9, in | |
[spawn_box_bot.py-3] from .index_tricks import * | |
[spawn_box_bot.py-3] File “/snap/box-bot-ros2/x1/usr/lib/python3/dist-packages/numpy/lib/index_tricks.py”, line 13, in | |
[spawn_box_bot.py-3] import numpy.matrixlib as matrixlib | |
[spawn_box_bot.py-3] File “/snap/box-bot-ros2/x1/usr/lib/python3/dist-packages/numpy/matrixlib/init.py”, line 6, in | |
[spawn_box_bot.py-3] from .defmatrix import * | |
[spawn_box_bot.py-3] File “/snap/box-bot-ros2/x1/usr/lib/python3/dist-packages/numpy/matrixlib/defmatrix.py”, line 13, in | |
[spawn_box_bot.py-3] from numpy.linalg import matrix_power | |
[spawn_box_bot.py-3] File “/snap/box-bot-ros2/x1/usr/lib/python3/dist-packages/numpy/linalg/init.py”, line 51, in | |
[spawn_box_bot.py-3] from .linalg import * | |
[spawn_box_bot.py-3] File “/snap/box-bot-ros2/x1/usr/lib/python3/dist-packages/numpy/linalg/linalg.py”, line 35, in | |
[spawn_box_bot.py-3] from numpy.linalg import lapack_lite, _umath_linalg | |
[spawn_box_bot.py-3] ImportError: /snap/box-bot-ros2/x1/usr/lib/x86_64-linux-gnu/atlas/liblapack.so.3: undefined symbol: ATL_dgeset | |
[ERROR] [spawn_box_bot.py-3]: process has died [pid 46712, exit code 1, cmd ‘/snap/box-bot-ros2/x1/lib/box_bot_description/spawn_box_bot.py /snap/box-bot-ros2/x1/share/box_bot_description/robot/box_bot.urdf --ros-args’]. |
Here you have the git with everything: GIT
I compiled using the command:
snapcraft --enable-experimental-extensions
Installed:
sudo snap install box-bot-ros2_0.1_amd64.snap --devmode --dangerous
Any ideas?