Hello, you are not supposed to instantiate Domains because they require additional initialization. Instead, use traci.vehicle.getSubscriptionResults() Don't worry if your IDE fails to recognize traci.vehicle. regards, Jakob
2018-07-20 14:09 GMT+02:00 cchadj01--- via sumo-user < [email protected]>: > > Hello, > I would like to ask what exactly are loaded vehicles? > From my understanding loaded vehicles are vehicles that exist in the > simulation until it ends. > Can I subscribe to a loaded vehicle that has yet to be departed? > In getDepartedIds do I get the ids of vehicles that have just entered the > simulation (just started their jurney) or I also get vehicles that already > existed from previous steps? > > Also in python I use getSubscriptionResults() but it doesn't return me a > dict like it says in the python > docs. > (example on how I use it) > import traci > > traci.start(sumoCmd, numRetries=2, port=2500 ,label="default") > vehicleCommands = traci._vehicle.VehicleDomain() > vehicleCommands._connection = traci.getConnection(label="default") > > ... > vehDict = vehicleCommands.getSubscriptionResults(vehId) > ^ this is not a dictionary as it says in the docs. > > Thank you! > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > _______________________________________________ > sumo-user mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/sumo-user > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
