Code Monkey home page Code Monkey logo

Comments (6)

WenqiangX avatar WenqiangX commented on May 19, 2024

I have encounter some internet issue, sorry for the duplicated posts.

from unity-robotics-hub.

at669 avatar at669 commented on May 19, 2024

Hi @WenqiangX,

MoveIt will calculate the robot's trajectories to avoid itself, as it is aware of the URDF description loaded during launch. If you would like to add objects to the scene for collision avoidance, such as the table or other objects in the scene, you can do so easily with the Move Group Interface with calls to add_box, for example.

If you plan on passing the position of objects from Unity to ROS, please also note a conversion between Unity and ROS coordinates will need to take place, which can be done using the ROSGeometry component.

Let me know if that answers your question!

from unity-robotics-hub.

WenqiangX avatar WenqiangX commented on May 19, 2024

Thanks for your reply, @at669

Yes I would like to add objects to the scene for collision avoidance. So if I understand correctly, to handle it, I should also import the models from the MoveIt side (Move Group Interface). In other words, a set of models (the table or other objects) for display in Unity, and a separate set of models (the table or other objects) for collision avoidance in MoveIt? About twice the consumption of the memory to store the object models, right?

I thought a more light-weighted approach exists for passing the collision model from Unity to ROS, since Unity has its own collision detection between the robot and the object.

from unity-robotics-hub.

at669 avatar at669 commented on May 19, 2024

It will depend on your specific use case--if the objects you'd like to add to the scene are primitives, you can use MoveIt's add_box, add_sphere, or add_plane, and these object meshes can live on the Unity side and only need to pass position and scale parameters to MoveIt.

If you have more complicated shapes that cannot be approximated using primitives, you can look into sending the Mesh from Unity to MoveIt as a CollisionObject, and using calls to addCollisionObjects to the planning scene.

These are options if you would like to use MoveIt to avoid collisions during motion planning--if you'd only like to track collisions when they occur using Unity's built-in collision detection, you can do so with tracking OnCollisionEnter calls on the desired object colliders.

from unity-robotics-hub.

WenqiangX avatar WenqiangX commented on May 19, 2024

Thanks, your answer fully addressed my concerns!

from unity-robotics-hub.

at669 avatar at669 commented on May 19, 2024

Glad to answer your questions! I will close out this issue for now--feel free to open it up again if you have any follow-up issues or questions.

from unity-robotics-hub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.