如何在 Breve Simulator 中为机器人添加摄像头?
我创建了一个基于布雷滕伯格车辆的两轮机器人。 我们的机器人有两个轮子和一个 PolygonDisk 主体(很像 kepera 和 e-puck 机器人)。 我想在机器人的前面添加一个摄像头。 那么问题就变成了如何控制相机以及如何保持将其指向正确的方向(与机器人相同的方向)。 如何使相机指向与机器人相同的方向?
I've created a two wheeled robot based on the braitenberg vehicle. Our robots have two wheels and a PolygonDisk body(Much like kepera and e-puck robots). I would like to add a camera to the front of the robot. The problem then becomes how to control the camera and how to keep pointing it in the right direction(same direction as the robot). How can you make the camera point in the same direction as the robot ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过多次尝试和失败,我终于成功了。
所以我是这样做的:
总体思路是有一个链接或对象链接到车辆,然后测量
它的旋转和位置,以便找出相机应瞄准的方向。
1) 添加链接到机器人的对象:
2) 添加此 postIterate:
After much trying and failing I finally made it work.
So here is how I did it:
The general idea is to have an link or object linked to the vehicle and then measuring
its rotation and location in order to find out in which direction the camera should be aimed.
1) Add an object that is linked to the robot:
2) Add this postIterate: