Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] vehicle parameters for the current step

- version 1.17 already includes simulation.executeMove and can be installed via pip so you don't even need to build anything by yourself: https://sumo.dlr.de/docs/Downloads.php#python_packages_virtual_environments
- if you want to build sumo yourself on Linux, make sure that you have all the requirements available (i.e. python): https://sumo.dlr.de/docs/Installing/Linux_Build.html
- our main branch is working fine at the moment. You can check the build status here: https://sumo.dlr.de/daily/

Am Mo., 8. Mai 2023 um 23:10 Uhr schrieb Mahima <mahima13@xxxxxxxxx>:
Hi Jakob,

Hope you are well.
As discussed during the Sumo conference, that executeMove() in libsumo can be used to take a half step and read the speed of vehicles for the next timestep.

But the sumo master branch does not look stable and gives the following error. Please provide a stable branch to use.

CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python (missing: Python_EXECUTABLE Python_INCLUDE_DIRS
  Python_LIBRARIES Interpreter Development Development.Module
  Development.Embed)
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.22/Modules/FindPython.cmake:561 (find_package_handle_standard_args)
  CMakeLists.txt:217 (find_package)

Thanks,
Mahima

On Sun, Sep 25, 2022 at 12:01 PM Mahima <mahima13@xxxxxxxxx> wrote:
Hi,

Is there any way to read the vehicle's speed, lane and position in the current timestep?

libsumo::Vehicle::getLanePosition
libsumo::Vehicle::getSpeed
All these APIs, give information about the last timestep.

Thanks
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top