Skip to content

2D LiDAR in LaserScanSensor.cs of Robotics-Nav2-SLAM-Example cannot be seen in Visualisations. #318

@shifsa

Description

@shifsa

I used 2D LiDAR with LaserScanSensor.cs from Robotics-Nav2-SLAM-Example and tried to visualise it on Unity, but it did not work with an error.
Does anyone know how to deal with this?

  • Environment

Ubuntu 20.04 LTS
Unity 2022.3.24f1

  • Methods
  1. create a new project.
  2. install ROS-TCP-Connector, Visualizations, URDF Importer.
  3. switch to ROS2 from Robotics→ROS Settings.
  4. import Clock.cs,TimeStamp.cs,LaserScanSensor.cs from Robotics-Nav2-SLAM-Example into my project
  5. drag & drop the DefaultVisualizationSuite into the Hierarchy.
  6. create a cube, Drag&Drop LaserScanSensor.cs to Inspector and change Topic name to /scan.
  7. play the simulation and try to check /scan in 3D, the following error occurs.
Object is too large or too far away from the origin.

Mesh '': abnormal mesh bounds - most likely it has some invalid vertices (+/-inifinity or NANs) due to errors exporting.
Mesh bounds min=(-inf, 0.00, -inf), max=(inf, 0.00, inf). Please make sure the mesh is exported without any errors.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions