Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Error while inserting vehicles from Sumo .rou file using PLEXE
  • From: Michele Segata <michele.segata@xxxxxxxx>
  • Date: Fri, 8 Jan 2021 09:01:04 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=unibz.it; dmarc=pass action=none header.from=unibz.it; dkim=pass header.d=unibz.it; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sDPZ+ZVcEuRUfbWTbiETrPqNvYO4NHxdjXVD2QpX1uE=; b=EDcRkHjbEUhz41EWAg3nnRF6OOp6we0UiOstggxE2CUYS53RsWhgad+n18KDc/fkensbIBwibItp9B8CsBh7iNGQXMtfVIFn8tg+LAMCnlV/FvyicoJv6r09DEaHRP88AqmU2z7389BUvCzaOkXZqlsUZjyoi04xzubt3taLbkyen6WCNYVZa4kCNXSQv5YiKVKAsRGkQYG4q3EYkz3Y2/WsgFTsF2k1BJ0IW/UBZCnHyAO9iGMtb2CuaiiR6e+BCdWHnVl/Iq/5UGb+lVUUCW8NSzpRAouxafO0lOULVGfPdaYfO7I7zEhb2rzqtn025Eh/HbcWvKmI27TxjqC8qw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P8QO1ihd6A7ym83HyqLZ4ByqminuRio9x6Hvvmi9QtwtkuRUtw9AZPGLxPwzBapO3Px0SpQs1nhPznHmW9F5Cib4Ieo9G9SOT2orFA5SuG8s2W64Qv92qw1w71XYEwFg/iehEA63eQzJAYvzACNfTGPnVvzNBwlTAaFIE2yMJhDNZ/PI0/Qw+eoxnqeRL+dywwPahwwCvyPa4e472MkHT2YalxhJcpcIxHmMnGVoPdAEOlU1eFFl+zeYTE257LsJC6l/Sz1Pol7VC70E64lGTAf9jjlXTZDR+edYAvClvBn8L7Wh8fhP3AT1k49II927thzAP6yRat+1dF9DrajERQ==
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

With respect to routes, you are right. The route being used for platoons is the first one, as you can see here:

https://github.com/michele-segata/plexe-veins/blob/master/src/plexe/traffic/PlatoonsTrafficManager.cc#L93

0 indicates the index of the route in the route file. If you want a different route, you need to modify the traffic manager to use the others as well.

Michele

On 07/01/2021 19:04, Thodoris Zerlentis wrote:
Ok perfect, so i managed to implement my requirment by using the PlatoonsTrafficManager and modifing the .ini file as you mentioned. The human cars are inserted as you mentioned from the .rou file with the standard SUMO way while the platoons cars are handled from the TrafficManager. So i noticed that if my .rou file has multiple routes the platoons cars are inserted with a random or the first one ( i am not sure which one ). If i want to have a scenario with multiple routes (lets say 10 different routes) and the platoons can only use specific ones (only 3 routes) i must modify the TraCIBaseTrafficManager and tell it exactly which ones i want to use for platoons? Am i correct?.

Best regards,
Thodoris

------------------------------------------------------------------------
*From:* sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of Michele Segata <michele.segata@xxxxxxxx>
*Sent:* Thursday, January 7, 2021 2:50 PM
*To:* sumo-user@xxxxxxxxxxx <sumo-user@xxxxxxxxxxx>
*Subject:* Re: [sumo-user] Error while inserting vehicles from Sumo .rou file using PLEXE
This is also possible and there is an example in examples/human.
Basically there you have a single platoon plus a human driven vehicle on
a side lane that sends 802.11p messages as well. If you look at the
omnetpp.ini file you will find the following:

*.manager.moduleType = "vtypeauto=org.car2x.plexe.PlatoonCar
vtypehuman=HumanCar"
*.manager.moduleName = "vtypeauto=node vtypehuman=human"

This means that a vtypehuman vehicle in SUMO will be instantiated as a
HumanCar node in OMNeT++ by Veins. You find the definition of
HumanCar.ned inside the examples/human folder. As you see, the HumanCar
node has a different stack. It uses an 802.11p NIC but a different
application.
Before running this example, please fetch the plexe-3.0a3 release from
github I just pushed. I noticed I mistake an I've quickly fixed it.

Let me know.
Best,
Michele

On 07/01/2021 11:54, Thodoris Zerlentis wrote:
Great I will try it, thank you. But I would like to ask you if I want the human-driven cars to be able to send messages to an RSU node, and that means veins must create a node for each vehicle, will it complicate things?? The human car type will only send those messages and won't involve as I said previously with joining or creating platoons.

Best regards,
Thodoris Zerlentis

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


--
Michele Segata, PhD
Assistant Professor, Faculty of Computer Science
University of Bolzano, Italy
https://www.inf.unibz.it/~segata/ <https://www.inf.unibz.it/~segata/>
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user <https://www.eclipse.org/mailman/listinfo/sumo-user>

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


--
Michele Segata, PhD
Assistant Professor, Faculty of Computer Science
University of Bolzano, Italy
https://www.inf.unibz.it/~segata/


Back to the top