lgsvl / simulator

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

How to replace the car with my own car model #254

Closed yangjiongfeng closed 4 years ago

yangjiongfeng commented 5 years ago

hello I can now use your simulation

选区_058

now,i want to replace the car with my own car model What should I do ? the car model file is ".xacro" or ".stl" ?

daohu527 commented 5 years ago

This issue #198 make a disscus, you can follow the step and try it out

lemketron commented 5 years ago

The process for adding a new ego vehicle is documented here: https://www.lgsvlsimulator.com/docs/add-new-ego-vehicle/ (and discussed in #198 as @daohu527 mentioned above)

yangjiongfeng commented 5 years ago

@lemketron Thank you for your answer. I follow your website tutorial 选区_060 But I have some error. 选区_061 I'm different from the author. What's wrong with me? My simulator-2019.04.tar.gz is downloaded here.

daohu527 commented 5 years ago
  1. Make sure your Unity version is "2018.2.4f1", here is a discussion.
  2. I'm not sure about the source code dowload here. You need to check the git lfs files are pull down. If just source code but not the lfs files, there be error.
  3. Can you see if the console window which is next to the project window has an error message?
Francisobiagwu commented 5 years ago

What if the user wants to replace the license plate with their own license plate (maybe customized license plate)?

martins-mozeiko commented 5 years ago

License plate currently is a texture that is applied to material. You can find texture in in this file: https://github.com/lgsvl/simulator/blob/master/Assets/Textures/CarXE/LicensePlateTexture.png

yangjiongfeng commented 5 years ago

@daohu527 1.What does your “You need to check the git lfs files are pull down” mean? I can't understand 2.Can you email me your simulator_source_code document?Thank you

daohu527 commented 5 years ago

I think you can confirm the error printing in the console window first, so you can determine the problem.

You can read the git-lfs here, use git lfs to download because some files are too large.

yangjiongfeng commented 5 years ago

@daohu527 Thank you very much for your answer. I have installed git-lfs. 选区_015