ROS-TCP-Connector
ROS-TCP-Connector copied to clipboard
2D LiDAR in LaserScanSensor.cs of Robotics-Nav2-SLAM-Example cannot be seen in Visualisations.
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
- create a new project.
- install ROS-TCP-Connector, Visualizations, URDF Importer.
- switch to ROS2 from Robotics→ROS Settings.
- import Clock.cs,TimeStamp.cs,LaserScanSensor.cs from Robotics-Nav2-SLAM-Example into my project
- drag & drop the DefaultVisualizationSuite into the Hierarchy.
- create a cube, Drag&Drop LaserScanSensor.cs to Inspector and change Topic name to /scan.
- 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&)