Hi Simon,
 
there are more options to output acceleration values and process them. 
Using TraCI may slow down your simulation compared to one of our other 
output options. For plotting accelerations, FCD output
<https://sumo.dlr.de/docs/Simulation/Output/FCDOutput.html> combined with 
the plotXMLAttributes.py
<https://sumo.dlr.de/docs/Tools/Visualization.html#plotxmlattributespy> 
script should do fine.
 
Best regards
Mirko
 
 
 
 
-----Original-Nachricht-----
Betreff: Re: [sumo-user] CAVs Vehicle's simulation
Datum: 2023-10-15T15:14:54+0200
Von: "Simon Hailemichael via sumo-user" <[email protected]>
An: "Sumo project User discussions" <[email protected]>
 
 
 
Thank you so much, Jerry! Okay, I will try the TraCI API. 
Kind Regards

On Sun, Oct 15, 2023 at 1:53 AM Jerry C via sumo-user <
[email protected] <mailto:[email protected]> > wrote:
  Hello Simon, 
   
  Have you considered using TraCI API? You can use Python to access
  TraCI-specific functions which you can use to collect acceleration data
  at every timestep. You can access TraCI documentation (including simple
  applications) here. <https://sumo.dlr.de/docs/TraCI.html>  For more
  specific commands, you can find a list here
  <https://sumo.dlr.de/docs/TraCI/Vehicle_Value_Retrieval.html> and here
  <https://sumo.dlr.de/pydoc/traci._vehicle.html#VehicleDomain> .
   
  A simple command for accessing the acceleration would look something
  like:
   
  accel = traci.vehicle.getAcceleration(veh_id)
   
  Alternatively, you can choose to subscribe to each vehicle upon injection
  into the network (info
  <https://sumo.dlr.de/docs/TraCI/Object_Variable_Subscription.html> for
  variable subscription)
   
  You can save the accel value into a dictionary with a key for each veh_id
  and use matplotlib to create your profile. 
   
  Hope that this helps.
   
  Jerry

  On Sat, Oct 14, 2023 at 1:57 PM Simon Hailemichael via sumo-user <
  [email protected] <mailto:[email protected]> > wrote:
    Hello Everyone,

    I am a new user of SUMO software and I am interested in simulating the
    traffic flow of fully Connected and Automated Vehicles by adjusting the
    IDM model parameters. I want to generate acceleration profiles for each
    vehicle in the simulation. Does anyone have any suggestions or
    references for this task? I would appreciate any help or guidance.
    Thank you

     
    --
    Simon Michael 
    Road and Transport Engineer
     


    _______________________________________________
    sumo-user mailing list
    [email protected] <mailto:[email protected]>
    To unsubscribe from this list, visit
    <https://www.eclipse.org/mailman/listinfo/sumo-user>
  _______________________________________________
  sumo-user mailing list
  [email protected] <mailto:[email protected]>
  To unsubscribe from this list, visit
  <https://www.eclipse.org/mailman/listinfo/sumo-user>

 
--
Simon Michael 
Road and Transport Engineer
 


 

_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to