为什么我不能在我的原型中的 BallJoint 节点的 'device' 字段中插入一个 RotationalMotor 节点?
why can't I insert a RotationalMotor node in 'device' field of BallJoint node in my proto?
我想在我的原型中使用 BallJoint 但是,我收到此警告:(PROTO) > Solid > BallJoint:跳过节点:无法在 BallJoint 节点的 'device' 字段中插入 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 错误。您可以在此处找到修复:https://github.com/omichel/webots/pull/756
我想在我的原型中使用 BallJoint 但是,我收到此警告:(PROTO) > Solid > BallJoint:跳过节点:无法在 BallJoint 节点的 'device' 字段中插入 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 错误。您可以在此处找到修复:https://github.com/omichel/webots/pull/756