Open mratanusarkar opened 5 months ago
Hi @mratanusarkar, thanks for using pycarmaker.
Some quantities, like Car.v, can not be written. A good way to know is open the Direct Variable Access windows (Application->Direct Variable Access) and see the quantities in blue. These are the ones you can write to.
Description
I am currently using the
pycarmaker
library to programmatically control vehicle speeds in CarMaker simulations. However, I've encountered an issue where I am unable to override the speed set by CarMaker maneuvers using theDVA_write()
method.The script does not seem to affect the speed as defined by the existing maneuvers in CarMaker's GUI.
Here is a snippet from my script that @Abb2907 and I am trying to work on to control ego vehicle speed from an external python script:
Steps to Reproduce
pycarmaker
:Expected Behavior
The vehicle's speed in the simulation should be overridden to 60 m/s, regardless of the speed set in the predefined maneuver.
Actual Behavior
The vehicle continues to adhere to the speed limit set by the CarMaker maneuver, and the speed override through the script has no effect.
Environment
CarMaker version: 11 Operating System: Windows 10