lgsvl / simulator

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

GPS location using python API #1484

Closed pushkar4501 closed 3 years ago

pushkar4501 commented 3 years ago

Hello, I am trying to get ego vehicle GPS location using Python API. I can already spawn ego and npc vehicles at my desired location. but how can i update gps value of the ego vehicle while running real time(using python api) p.s. - i dont want to use rosbridge to collect the data for my project.

EricBoiseLGSVL commented 3 years ago

We have created the bridge for data collection. Python api is not performant for this task. If you want to do this anyway, you can edit Api command scripts and the python api repo to collect the data. We have examples already in the source code. You will need to create a new custom binary.

pushkar4501 commented 3 years ago

Thank you for your reply. As i am a newbie here, could you provide me some references about creating a new custom binary for simulator.

lemketron commented 3 years ago

Information about building the simulator from source can be found here: https://www.svlsimulator.com/docs/installation-guide/build-instructions/