首页 > 解决方案 > 为什么我不能在我的原型的 BallJoint 节点的“设备”字段中插入 RotationalMotor 节点?

问题描述

我想在我的原型中使用 BallJoint 但是,我收到此警告:(PROTO)> Solid > BallJoint:跳过节点:无法在 BallJoint 节点的“设备”字段中插入 RotationalMotor 节点。任何想法如何解决这一问题?我是这样定义它的:

      BallJoint {
        jointParameters BallJointParameters {
          anchor 0 0.05 0
        }
        device [
          RotationalMotor {
            name "motor 1"
            maxVelocity 1
          }
        ]
        device2 [
          RotationalMotor {
            name "motor 2"
            maxVelocity 1
            minPosition -1.5707963267948966
            maxPosition 1.5707963267948966
          }
        ]
        device3 [
          RotationalMotor {
            name "motor 3"
            maxVelocity 1
          }
        ]
        endPoint Solid {
          translation 0 0.05 0
          children [
            Shape {
              appearance BrushedAluminium {
              }
              geometry DEF SPHERE Sphere {
                radius 0.03
                subdivision 32
                ico FALSE
              }
            }
          ]
          boundingObject USE SPHERE
          physics Physics {
          }
        }
      }

标签: webots

解决方案


这实际上是一个Webots 错误。你可以在这里找到修复:https ://github.com/omichel/webots/pull/756


推荐阅读