首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >为什么我不能在我的proto中BallJoint节点的‘RotationalMotor’字段中插入设备节点?

为什么我不能在我的proto中BallJoint节点的‘RotationalMotor’字段中插入设备节点?
EN

Stack Overflow用户
提问于 2019-07-22 17:23:49
回答 1查看 54关注 0票数 1

我想在我的proto中使用一个设备,但是,我得到了这样的警告:(PROTO) > Solid > BallJoint: Skipped : Cannot insert RotationalMotor node in‘BallJoint’in BallJoint node。有什么办法解决这个问题吗?下面是我对它的定义:

代码语言:javascript
运行
复制
      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 {
          }
        }
      }
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-07-25 20:56:05

这实际上是一个Webots bug。你可以在这里找到解决方案:https://github.com/omichel/webots/pull/756

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57142908

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档