Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Official Announcing: the Unity Robotics Visualizations Package

Discussion in 'Robotics' started by LaurieUnity, Oct 7, 2021.

  1. LaurieUnity

    LaurieUnity

    Unity Technologies

    Joined:
    Oct 23, 2020
    Posts:
    77
    We have a new release!

    With the new Visualization package, our existing ROS connection package can now display visualizations of most of the common ROS message types. Use the predefined visualizers or write your own: draw 3d lines, shapes, labels, point clouds, and meshes, or 2d GUI elements such as text and images, however you see fit.

    You can read more in our release blog:
    https://blog.unity.com/manufacturing/introducing-unity-robotics-visualizations-package

    Or dive right in with our Nav2-SLAM example, which demonstrates navigation with visualizations.
    https://github.com/Unity-Technologies/Robotics-Nav2-SLAM-Example
     
  2. bjornsyse

    bjornsyse

    Joined:
    Mar 28, 2017
    Posts:
    78
    Would it be possible to use the PointCloudDrawing mentioned in the blog post to visualize a realtime stream from a real lidar you reckon?
     
  3. LaurieUnity

    LaurieUnity

    Unity Technologies

    Joined:
    Oct 23, 2020
    Posts:
    77
    Sure! If your lidar is sending ROS LaserScan messages it should Just Work™.

    If you're not using ROS, you can write your own code to instantiate a PointCloudDrawing yourself, and draw points on it manually - just place the Drawing3dManager prefab in your scene and write something like:

    Code (CSharp):
    1. Drawing3d drawing = Drawing3dManager.CreateDrawing();
    2. PointCloudDrawing pointCloud = drawing.AddPointCloud(numPoints);
    3. foreach(...)
    4. {
    5.     pointCloud.AddPoint(position, color, radius);
    6. }
    For efficiency, rather than making a new PointCloudDrawing each time, you should keep a reference to the same one, and call Clear() before you redraw it.
     
  4. ishb

    ishb

    Joined:
    Aug 9, 2020
    Posts:
    2
    @Laurie-Unity Is there a possibility of generating a live 3d reconstruction from real-time stream from a Lidar sending ROS Point Cloud 2 messages?
     
  5. akshetpatel

    akshetpatel

    Joined:
    Apr 22, 2021
    Posts:
    1
    I want to map the inputs from keyboard to Oculus Quest controller for niryo_one robot. Has anyone worked on a similar project? I need some assistance with mapping the controls.
     
  6. medinafb01

    medinafb01

    Joined:
    Feb 1, 2021
    Posts:
    12
  7. Envilon

    Envilon

    Joined:
    Aug 8, 2020
    Posts:
    42
    I was hoping I could slap the DefaultVisualizationSuite from the Visualizations package into the Pick and Place example with the Niryo One robot and get some basic trajectory visualization out of the box. But all I get are errors. Should that work, or are there any modifications I need to do in order to use the DefaultVisualizationSuite in Pick and Place?

    I imagined this: https://blog-api.unity.com/sites/default/files/videos/2021-10/TrajectoryPreview_2.mp4
     
    Last edited: Nov 28, 2022