Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shifsa opened this issue Apr 22, 2024 · 0 comments

Comments

@shifsa
Copy link

shifsa commented Apr 22, 2024

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&)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant