How to create a new object type in Microsoft Robotics Studio 2.0?

What I'm trying to do with MRS is to teach me basic AI; what I want to do is create a rocket entity with things like vector exhaust and staging. Does anyone have an idea on how to create an entity that can fly? Or do I just need to constantly use force up?

+6
artificial-intelligence robotics-studio robotics
source share
2 answers

Hey Trauma Pony, your question looked lonely :)

I looked at the MSDN article on MRS 2.0 here. I believe that you really need to create some kind of Rocket object and then a Thruster object that it can use. In this article, they were able to reuse the DifferentialDrive object to push their bot forward. Hope this helps. I shoot more or less into the dark because no one has tried to help you yet. Hooray!:)

+3
source share

I am just starting with MRS on my own - but I think that you are on the right track, you need to create a rocket engine object to which you can apply traction. See Simulation Tutorial 2 - Creating Objects Using Simulation Services for an example of creating an object.

You can apply force using Simulation.Physics.PhysicsEntity.ApplyForce() . I think you will do this in your Update() method. But it depends on whether ApplicationForce is actually used by Impulse (force only for this frame) or if it really adds persistent Strength. I guess it is the first one since I see no way not to use it. In this case, Update () is probably the right place. If it is persistent, what you need to do is change traction levels only.

You will also need to create a service that will partner with Entity so that you can interact with your rocket, for example, to shoot or carry it. Here is an example of creating a service in the same article.

+2
source share

All Articles