鱼香ROS社区
    • 版块
    • 最新
    • 未解决
    • 已解决
    • 群组
    • 注册
    • 登录
    紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
    提问前必看的发帖注意事项: 社区问答规则(小鱼个人)更新 | 高质量帖子发布指南

    Gazebo导入模型错误

    已定时 已固定 已锁定 已移动
    仿真
    ros2 gazebo11 模型导入失败
    1
    4
    495
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 11329603311
      王志豪
      最后由 编辑

      救救孩子,我用自定义的三维模型导出的URDF文件,在向Gazebo中导入模型时报错:
      [INFO] [launch]: All log files can be found below /home/w/.ros/log/2024-03-07-14-01-11-973522-w-virtual-machine-4342
      [INFO] [launch]: Default logging verbosity is set to INFO
      [INFO] [gazebo-1]: process started with pid [4344]
      [INFO] [spawn_entity.py-2]: process started with pid [4346]
      [spawn_entity.py-2] [INFO] [1709791272.379086627] [spawn_entity]: Spawn Entity started
      [spawn_entity.py-2] [INFO] [1709791272.379976371] [spawn_entity]: Loading entity XML from file /home/w/robot_ws/install/lesson_urdf/share/lesson_urdf/urdf/planar_3dof.urdf.xacro
      [gazebo-1] Gazebo multi-robot simulator, version 11.11.0
      [gazebo-1] Copyright (C) 2012 Open Source Robotics Foundation.
      [gazebo-1] Released under the Apache 2 License.
      [gazebo-1] http://gazebosim.org
      [gazebo-1]
      [spawn_entity.py-2] [INFO] [1709791272.382085860] [spawn_entity]: Waiting for service /spawn_entity, timeout = 30
      [spawn_entity.py-2] [INFO] [1709791272.382657811] [spawn_entity]: Waiting for service /spawn_entity
      [gazebo-1] Gazebo multi-robot simulator, version 11.11.0
      [gazebo-1] Copyright (C) 2012 Open Source Robotics Foundation.
      [gazebo-1] Released under the Apache 2 License.
      [gazebo-1] http://gazebosim.org
      [gazebo-1]
      [gazebo-1] [INFO] [1709791272.821512950] [gazebo_ros_node]: ROS was initialized without arguments.
      [spawn_entity.py-2] [INFO] [1709791273.138869178] [spawn_entity]: Calling service /spawn_entity
      [gazebo-1] [Msg] Waiting for master.
      [gazebo-1] [Msg] Connected to gazebo master @ http://127.0.0.1:11345
      [gazebo-1] [Msg] Publicized address: 192.168.1.131
      [gazebo-1] [Msg] Loading world file [/usr/share/gazebo-11/worlds/empty.world]
      [gazebo-1] [Err] [Model.cc:123] Error Code 23 Msg: FrameAttachedToGraph error, Non-LINK vertex with name [model] is disconnected; it should have 1 outgoing edge in MODEL attached_to graph.
      [gazebo-1] [Err] [Model.cc:123] Error Code 23 Msg: Graph with model scope has sink vertex named [model] when starting from vertex with name [model], which is not permitted.

      [spawn_entity.py-2] [INFO] [1709791273.203339750] [spawn_entity]: Spawn status: SpawnEntity: Successfully spawned entity [planar_3dof]
      [INFO] [spawn_entity.py-2]: process has finished cleanly [pid 4346]
      [gazebo-1] [Msg] Waiting for master.
      [gazebo-1] [Msg] Connected to gazebo master @ http://127.0.0.1:11345
      [gazebo-1] [Msg] Publicized address: 192.168.1.131
      [gazebo-1] [Wrn] [Event.cc:61] Warning: Deleting a connection right after creation. Make sure to save the ConnectionPtr from a Connect call
      [gazebo-1] [Wrn] [Publisher.cc:135] Queue limit reached for topic /gazebo/default/user_camera/pose, deleting message. This warning is printed only once.
      ^C[WARNING] [launch]: user interrupted with ctrl-c (SIGINT)
      [INFO] [gazebo-1]: process has finished cleanly [pid 4344]
      [gazebo-1]

      1 条回复 最后回复 回复 引用 0
      • 11329603311
        王志豪
        最后由 编辑

        ubuntu20.04+ROS2 foxy
        出错原因应该是gazebo加载URDF中的STL模型引起的,还不知道怎么解决

        1 条回复 最后回复 回复 引用 0
        • 11329603311
          王志豪
          最后由 编辑

          跟这个人遇到的问题一样:https://github.com/gazebosim/gazebo-classic/issues/2869

          11329603311 1 条回复 最后回复 回复 引用 0
          • 11329603311
            王志豪 @1132960331
            最后由 编辑

            @1132960331 在 Gazebo导入模型错误 中说:

            [Err] [Model.cc:123] Error Code 23 Msg: FrameAttachedToGraph error, Non-LINK vertex with name [model] is disconnected; it should have 1 outgoing edge in MODEL attached_to graph.
            [gazebo-1] [Err] [Model.cc:123] Error Code 23 Msg: Graph with model scope has sink vertex named [model] when starting from vertex with name [model], which is not pe
            添加惯性参数后,问题可以解决,但是又报了新的问题

            1 条回复 最后回复 回复 引用 0
            • 第一个帖子
              最后一个帖子
            皖ICP备16016415号-7
            Powered by NodeBB | 鱼香ROS