lgsvl / simulator

A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles
Other
2.29k stars 780 forks source link

Couldn't build sensor plugin #1504

Closed duongtran11 closed 3 years ago

duongtran11 commented 3 years ago

I've tried to build sensor plugin several times in Windows 10, in both 2021.1 and 2021.1.1 simulator versions. The build was success. But when I tried to upload it to webUI, I got an error saying the file format wasn't supported. 2021-06-18_213634 2021-06-18_213658

Then I've tried to build it again in Ubuntu 18.04, got the same warning in Unity Editor, the same error in webUI. Then I checked in the .config/unity3d/LGElectronic/SVLSimulator/Sensor/. It's where the sensor got downloaded when you start a simulation. Found the Lidar sensor file (each sensor got a asset guid). I extracted it then got a folder contains 4 other files Then I extracted the sensor_LidarSensor file that I just built, got a folder contains only 3 other files inside (I forgot to take a screenshot), it's .dll file is missing. I didn't touch anything in Build.cs but seems like the build was not done right.

duongtran11 commented 3 years ago

Done. I forgot to put the LidarSensor.cs and LidarSensorTemplate.cs in External/Sensors folder.