The car-following models in Sumo generally don't resolve to that level of detail (sumo is a traffic simulation not a driving simulation). There is some code to that regard in the src/microsim/engine folder (modelling gear and rpm) but it is only used as a sub-component of car-following model "CC". You can get something close to the "brake status" from the method vehicle->getAcceleration() (which may be negative).
regards, Jakob Am Mi., 1. Mai 2019 um 01:44 Uhr schrieb alexis flores < [email protected]>: > Thanks Jakob! > > Also, do you know is there is any information available within the Vehicle > source files regarding BrakeSystemStatus or TransmissionState? I would like > to implement these attributes for a vehicle device that collects Basic > Safety Messages for DSRC applications. I can not seem to find any getHelper > functions that retrieve info about a vehicles brakes or transmission status. > > Best, > Alexis > > On Apr 24, 2019, at 11:38 PM, Jakob Erdmann <[email protected]> wrote: > > Multiple instances of the same device type are not currently supported by > the architecture. It may be necessary to fashion your own device into a > wrapper for the separate module instances. > > regards, > Jakob > > Am Do., 25. Apr. 2019 um 01:03 Uhr schrieb alexis flores < > [email protected]>: > >> Hello Michael, >> >> My apologies, it looks like I subscribed to the sumo-dev mailing list >> using this email but sent the DSRC email through a different email >> resulting in the bouncer message. Thanks for taking the time and providing >> this information. I was able to cast a SUMOVehicle object into a MSVehicle >> object (using a dynamic_cast ) and able to retrieve signaling information >> that I can add to the DSRC device module that I am working on. >> >> Do you know if it is possible to instantiate more than one copy of the >> same device within a vehicle. For example, I would like to install 5 of the >> same DSRC device modules in one vehicle so that it outputs 5 streams of >> data. I have tried adding 5 copies of the devices into a vehicle inside the >> .rou.xml file but SUMO does not register that I want 5 copies of it instead >> of one. Is this even possible to do in SUMO or will I need to modify the >> main MSDevice file? >> >> >> Best, >> Alexis Flores >> >> On Sun, Mar 10, 2019 at 7:48 AM Michael Behrisch <[email protected]> wrote: >> >>> Hi, >>> you are in the right place although you should subscribe before posting >>> to make sure you receive all answers. Concerning your question most >>> information can be retrieved from the vehicle itself which is available >>> using the getHolder function. You may need to cast it to MSVehicle >>> before you can call functions like getSignals which gives you the >>> information needed (see src/microsim/MSVehicle.h). >>> >>> Best regards, >>> Michael >>> >>> Am 10.03.19 um 02:40 schrieb aflore37 aflore37: >>> > Hello sumo-dev group! >>> > >>> > My name is Alexis Flores, I am a student working on a project which >>> > involves extending SUMO. Apologies in advance if this was not the >>> > appropriate way of contacting the mailing list and any feedback would >>> be >>> > appreciated. >>> > >>> > I am working on developing a DSRC device to attach to the vehicle class >>> > so that I can generate required data such as Basic Safety Messages >>> > (BSM), Emergency Vehicle Alerts (EVA), and Intersection Collision >>> > Avoidance (ICA) messages for different DSRC applications. I have >>> created >>> > a basic DSRC device skeleton based on the example device found within >>> > the device folder. I am attempting to include information such as the >>> > brake light status, turn signal status, and any vehicle output that can >>> > be used for DSRC messages. I have looked around the source code and >>> > mailing list archive but can not seem to find where such information is >>> > located. Is that available in any of the source folders? Any >>> > guidance/advice will be appreciated. Thanks! >>> > >>> > >>> > Alexis Flores >>> > [email protected] <mailto:[email protected]> >>> > >>> > _______________________________________________ >>> > sumo-dev mailing list >>> > [email protected] >>> > To change your delivery options, retrieve your password, or >>> unsubscribe from this list, visit >>> > https://www.eclipse.org/mailman/listinfo/sumo-dev >>> > >>> >>> >>> _______________________________________________ >>> sumo-dev mailing list >>> [email protected] >>> To change your delivery options, retrieve your password, or unsubscribe >>> from this list, visit >>> https://www.eclipse.org/mailman/listinfo/sumo-dev >>> >> _______________________________________________ >> sumo-dev mailing list >> [email protected] >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-dev >> > _______________________________________________ > sumo-dev mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-dev > > > _______________________________________________ > sumo-dev mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-dev >
_______________________________________________ sumo-dev mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev
