0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

MoveIt Setup Assistantが「Load Files」でSegmentation faultになるときの対処方法

0
Posted at

はじめに

MoveIt 2のMoveIt Setup Assistantで、新規パッケージ作成中の「Load Files」でアプリケーションが異常終了するときの対処方法を紹介する。

動作確認環境

  • Ubuntu 22.04 x86_64
  • ROS 2 Humble
    • MoveIt 2関連
      ii  ros-humble-moveit-common                          2.5.9-1jammy.20260304.202206            amd64        Common support functionality used throughout MoveIt
      ii  ros-humble-moveit-configs-utils                   2.5.9-1jammy.20260724.030557            amd64        Python library for loading moveit config parameters in launch files
      ii  ros-humble-moveit-core                            2.5.9-1jammy.20260804.210148            amd64        Core libraries used by MoveIt
      ii  ros-humble-moveit-kinematics                      2.5.9-1jammy.20260804.220521            amd64        Package for all inverse kinematics solvers in MoveIt
      ii  ros-humble-moveit-msgs                            2.2.1-1jammy.20260718.020254            amd64        Messages, services and actions used by MoveIt
      ii  ros-humble-moveit-planners-ompl                   2.5.9-1jammy.20260804.221730            amd64        MoveIt interface to OMPL
      ii  ros-humble-moveit-ros-move-group                  2.5.9-1jammy.20260804.221133            amd64        The move_group node for MoveIt
      ii  ros-humble-moveit-ros-occupancy-map-monitor       2.5.9-1jammy.20260804.214555            amd64        Components of MoveIt connecting to occupancy map
      ii  ros-humble-moveit-ros-planning                    2.5.9-1jammy.20260804.214756            amd64        Planning components of MoveIt that use ROS
      ii  ros-humble-moveit-ros-planning-interface          2.5.9-1jammy.20260804.223930            amd64        Components of MoveIt that offer simpler interfaces to planning and execution
      ii  ros-humble-moveit-ros-robot-interaction           2.5.9-1jammy.20260804.221030            amd64        Components of MoveIt that offer interaction via interactive markers
      ii  ros-humble-moveit-ros-visualization               2.5.9-1jammy.20260804.224214            amd64        Components of MoveIt that offer visualization
      ii  ros-humble-moveit-ros-warehouse                   2.5.9-1jammy.20260804.221154            amd64        Components of MoveIt connecting to MongoDB
      ii  ros-humble-moveit-servo                           2.5.9-1jammy.20260804.224212            amd64        Provides real-time manipulator Cartesian and joint servoing.
      ii  ros-humble-moveit-setup-app-plugins               2.5.9-1jammy.20260804.231103            amd64        Various specialty plugins for MoveIt Setup Assistant
      ii  ros-humble-moveit-setup-assistant                 2.5.9-1jammy.20260804.232250            amd64        Generates a configuration package that makes it easy to use MoveIt
      ii  ros-humble-moveit-setup-controllers               2.5.9-1jammy.20260804.231103            amd64        MoveIt Setup Steps for ROS 2 Control
      ii  ros-humble-moveit-setup-core-plugins              2.5.9-1jammy.20260804.231105            amd64        Core (meta) plugins for MoveIt Setup Assistant
      ii  ros-humble-moveit-setup-framework                 2.5.9-1jammy.20260804.230816            amd64        C++ Interface for defining setup steps for MoveIt Setup Assistant
      ii  ros-humble-moveit-setup-srdf-plugins              2.5.9-1jammy.20260804.231103            amd64        SRDF-based plugins for MoveIt Setup Assistant
      ii  ros-humble-moveit-simple-controller-manager       2.5.9-1jammy.20260804.214143            amd64        A generic, simple controller manager plugin for MoveIt.
      
    • RViz2関連
      • 変更前
        ii  ros-humble-nav2-rviz-plugins                      1.1.20-1jammy.20260219.051102           amd64        Navigation 2 plugins for rviz
        ii  ros-humble-rviz-assimp-vendor                     11.2.25-1jammy.20260213.232641          amd64        Wrapper around assimp, providing nothing but a dependency on assimp, on some systems.
        ii  ros-humble-rviz-common                            11.2.25-1jammy.20260219.030029          amd64        Common rviz API, used by rviz plugins and applications.
        ii  ros-humble-rviz-default-plugins                   11.2.25-1jammy.20260219.040345          amd64        Several default plugins for rviz to cover the basic functionality.
        ii  ros-humble-rviz-ogre-vendor                       11.2.25-1jammy.20260213.232649          amd64        Wrapper around ogre3d, it provides a fixed CMake module and an ExternalProject build of ogre.
        ii  ros-humble-rviz-rendering                         11.2.25-1jammy.20260214.005119          amd64        Library which provides the 3D rendering functionality in rviz.
        ii  ros-humble-rviz2                                  11.2.25-1jammy.20260219.051321          amd64        3D visualization tool for ROS.
        
      • 変更後
        ii  ros-humble-rviz-assimp-vendor                     11.2.28-1jammy.20260714.150848          amd64        Wrapper around assimp, providing nothing but a dependency on assimp, on some systems.
        ii  ros-humble-rviz-common                            11.2.28-1jammy.20260804.200122          amd64        Common rviz API, used by rviz plugins and applications.
        ii  ros-humble-rviz-default-plugins                   11.2.28-1jammy.20260804.212519          amd64        Several default plugins for rviz to cover the basicfunctionality.
        ii  ros-humble-rviz-ogre-vendor                       11.2.28-1jammy.20260714.150851          amd64        Wrapper around ogre3d, it provides a fixed CMake module and an ExternalProject build of ogre.
        ii  ros-humble-rviz-rendering                         11.2.28-1jammy.20260715.012257          amd64        Library which provides the 3D rendering functionality in rviz.
        ii  ros-humble-rviz2                                  11.2.28-1jammy.20260804.222726          amd64        3D visualization tool for ROS.
        

再現

MoveIt 2のMoveIt Setup Assistantを起動する。

source /opt/ros/humble/setup.bash
ros2 launch moveit_setup_assistant setup_assistant.launch.py

image.png

「Start Screen」-「Create New MoveIt Configuration Package」ボタンを押し、
「Load a URDF or COLLADA Robot Model」のBrowseからURDFファイルを選択して、「Load Files」ボタンを押す。

image.png

ロードの途中で以下のエラーが発生し、MoveIt Setup Assistantが異常終了する。

...
Stack trace (most recent call last):
...
Object "/opt/ros/humble/lib/librviz_common.so", ...
rviz_common::properties::PropertyTreeModel::propertyHiddenChanged(...)
Segmentation fault
[ERROR] [moveit_setup_assistant-1]: process has died ...

Unitree G1のURDFをMoveIt Setup Assistantで読み込んだ際に異常終了する同様の問題が、以下のIssueでも報告されている。

原因

本現象は、MoveIt Setup Assistantが内部で利用しているRViz2(rviz_common)の不具合に起因する。

MoveItのIssue #3546でも、「Load Files」実行時に、rviz_common::properties::PropertyTreeModel::propertyHiddenChanged()付近でSegmentation faultが発生する事例が報告されている。

対処方法

RViz2を不具合が修正されたバージョンへアップデートする。本環境では、11.2.25から11.2.28へアップデートすることで解消した。

sudo apt update
sudo apt install \
  ros-humble-rviz2 \
  ros-humble-rviz-common \
  ros-humble-rviz-default-plugins \
  ros-humble-rviz-rendering \
  ros-humble-rviz-assimp-vendor \
  ros-humble-rviz-ogre-vendor

RViz2が正しくアップグレードしたかを確認する。

dpkg -l | grep ros-humble-rviz

RViz2関連パッケージが11.2.28へアップデートされていることを確認する。

ii  ros-humble-rviz-assimp-vendor                     11.2.28-1jammy.20260714.150848          amd64        Wrapper around assimp, providing nothing but a dependency on assimp, on some systems.
ii  ros-humble-rviz-common                            11.2.28-1jammy.20260804.200122          amd64        Common rviz API, used by rviz plugins and applications.
ii  ros-humble-rviz-default-plugins                   11.2.28-1jammy.20260804.212519          amd64        Several default plugins for rviz to cover the basic functionality.
ii  ros-humble-rviz-ogre-vendor                       11.2.28-1jammy.20260714.150851          amd64        Wrapper around ogre3d, it provides a fixed CMake module and an ExternalProject build of ogre.
ii  ros-humble-rviz-rendering                         11.2.28-1jammy.20260715.012257          amd64        Library which provides the 3D rendering functionality in rviz.
ii  ros-humble-rviz2                                  11.2.28-1jammy.20260804.222726          amd64        3D visualization tool for ROS.

MoveIt Setup Assistantを起動して、再度「Load Files」を実行し、異常終了しないことを確認する。
正常に読み込まれると、画像のようにロボットモデルが表示され、「Self-Collisions」などの設定が可能になる。

image.png

まとめ

MoveIt 2のMoveIt Setup Assistantで、「Load Files」実行時にSegmentation faultが発生して異常終了する場合の対処方法を紹介した。本環境では、RViz2を11.2.25から11.2.28へアップデートすることで問題を解消できた。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?