Skip to content

Error on running #2

Description

@mohsenrahmanikivi

Hi

I could not run the package Do you have any idea? I put the resault here

user@NexusLite-PC:~/ros2_ws$ ros2 launch segway segway_ros.launch.py
[INFO] [launch]: All log files can be found below /home/user/.ros/log/2025-05-21-17-22-34-481739-NexusLite-PC-16721
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [segway_hardware_interface-1]: process started with pid [16722]
[INFO] [segway_controller-2]: process started with pid [16724]
[segway_hardware_interface-1] Traceback (most recent call last):
[segway_hardware_interface-1] File "/home/user/ros2_ws/install/segway/lib/segway/segway_hardware_interface", line 33, in
[segway_hardware_interface-1] sys.exit(load_entry_point('segway==0.0.0', 'console_scripts', 'segway_hardware_interface')())
[segway_hardware_interface-1] File "/home/user/ros2_ws/install/segway/lib/segway/segway_hardware_interface", line 25, in importlib_load_entry_point
[segway_hardware_interface-1] return next(matches).load()
[segway_hardware_interface-1] File "/usr/lib/python3.10/importlib/metadata/init.py", line 171, in load
[segway_hardware_interface-1] module = import_module(match.group('module'))
[segway_hardware_interface-1] File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
[segway_hardware_interface-1] return _bootstrap._gcd_import(name[level:], package, level)
[segway_hardware_interface-1] File "", line 1050, in _gcd_import
[segway_hardware_interface-1] File "", line 1027, in _find_and_load
[segway_hardware_interface-1] File "", line 1006, in _find_and_load_unlocked
[segway_hardware_interface-1] File "", line 688, in _load_unlocked
[segway_hardware_interface-1] File "", line 883, in exec_module
[segway_hardware_interface-1] File "", line 241, in _call_with_frames_removed
[segway_hardware_interface-1] File "/home/user/ros2_ws/install/segway/lib/python3.10/site-packages/segway/segway_hardware_interface.py", line 14, in
[segway_hardware_interface-1] from .segway_data_classes import RMP_DATA
[segway_hardware_interface-1] File "/home/user/ros2_ws/install/segway/lib/python3.10/site-packages/segway/segway_data_classes.py", line 12, in
[segway_hardware_interface-1] from tf_transformations import quaternion_from_euler, euler_from_quaternion
[segway_hardware_interface-1] File "/opt/ros/humble/lib/python3.10/site-packages/tf_transformations/init.py", line 46, in
[segway_hardware_interface-1] import transforms3d
[segway_hardware_interface-1] File "/usr/lib/python3/dist-packages/transforms3d/init.py", line 10, in
[segway_hardware_interface-1] from . import quaternions
[segway_hardware_interface-1] File "/usr/lib/python3/dist-packages/transforms3d/quaternions.py", line 26, in
[segway_hardware_interface-1] _MAX_FLOAT = np.maximum_sctype(np.float)
[segway_hardware_interface-1] File "/home/user/.local/lib/python3.10/site-packages/numpy/init.py", line 400, in getattr
[segway_hardware_interface-1] raise AttributeError(
[segway_hardware_interface-1] AttributeError: np.maximum_sctype was removed in the NumPy 2.0 release. Use a specific dtype instead. You should avoid relying on any implicit mechanism and select the largest dtype of a kind explicitly in the code.
[segway_controller-2] Traceback (most recent call last):
[segway_controller-2] File "/home/user/ros2_ws/install/segway/lib/segway/segway_controller", line 33, in
[segway_controller-2] sys.exit(load_entry_point('segway==0.0.0', 'console_scripts', 'segway_controller')())
[segway_controller-2] File "/home/user/ros2_ws/install/segway/lib/segway/segway_controller", line 25, in importlib_load_entry_point
[segway_controller-2] return next(matches).load()
[segway_controller-2] File "/usr/lib/python3.10/importlib/metadata/init.py", line 171, in load
[segway_controller-2] module = import_module(match.group('module'))
[segway_controller-2] File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
[segway_controller-2] return _bootstrap._gcd_import(name[level:], package, level)
[segway_controller-2] File "", line 1050, in _gcd_import
[segway_controller-2] File "", line 1027, in _find_and_load
[segway_controller-2] File "", line 1006, in _find_and_load_unlocked
[segway_controller-2] File "", line 688, in _load_unlocked
[segway_controller-2] File "", line 883, in exec_module
[segway_controller-2] File "", line 241, in _call_with_frames_removed
[segway_controller-2] File "/home/user/ros2_ws/install/segway/lib/python3.10/site-packages/segway/segway_controller.py", line 12, in
[segway_controller-2] from tf_transformations import quaternion_from_euler, euler_from_quaternion
[segway_controller-2] File "/opt/ros/humble/lib/python3.10/site-packages/tf_transformations/init.py", line 46, in
[segway_controller-2] import transforms3d
[segway_controller-2] File "/usr/lib/python3/dist-packages/transforms3d/init.py", line 10, in
[segway_controller-2] from . import quaternions
[segway_controller-2] File "/usr/lib/python3/dist-packages/transforms3d/quaternions.py", line 26, in
[segway_controller-2] _MAX_FLOAT = np.maximum_sctype(np.float)
[segway_controller-2] File "/home/user/.local/lib/python3.10/site-packages/numpy/init.py", line 400, in getattr
[segway_controller-2] raise AttributeError(
[segway_controller-2] AttributeError: np.maximum_sctype was removed in the NumPy 2.0 release. Use a specific dtype instead. You should avoid relying on any implicit mechanism and select the largest dtype of a kind explicitly in the code.
[ERROR] [segway_hardware_interface-1]: process has died [pid 16722, exit code 1, cmd '/home/user/ros2_ws/install/segway/lib/segway/segway_hardware_interface --ros-args'].
[ERROR] [segway_controller-2]: process has died [pid 16724, exit code 1, cmd '/home/user/ros2_ws/install/segway/lib/segway/segway_controller --ros-args'].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions