Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Platooning in SUMO

Hi Michael/Leo,


Thank you for writing me back.

I tried few ways and was able to run the Platoon simulation. I am using Python 3.6 version. Previously, I used "type" instead of "vType" in the below trip file :


<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
    <trip id="truck_l0" depart="350.00" from="25865510" to="25887741#1" vType="leader_type1"/>
</routes>

Thanks and Regards,

Vrinda Khirwadkar

University of Memphis




From: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of sumo-user-request@xxxxxxxxxxx <sumo-user-request@xxxxxxxxxxx>
Sent: Monday, July 16, 2018 2:27 PM
To: sumo-user@xxxxxxxxxxx
Subject: sumo-user Digest, Vol 13, Issue 58
 
Send sumo-user mailing list submissions to
        sumo-user@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        https://dev.eclipse.org/mailman/listinfo/sumo-user
or, via email, send a message with subject or body 'help' to
        sumo-user-request@xxxxxxxxxxx

You can reach the person managing the list at
        sumo-user-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of sumo-user digest..."


Today's Topics:

   1. Re: Platooning in SUMO (Leonhard.Luecken@xxxxxx)
   2. Multiple sumo instances (Thanos Tasakos)
   3. Re: Controlling the lateral alignment via TraCI (Umair Durrani)
   4.  POI (Stefano Niero via sumo-user)
   5. Re: POI (Jakob Erdmann)


----------------------------------------------------------------------

Message: 1
Date: Mon, 16 Jul 2018 16:22:07 +0000
From: <Leonhard.Luecken@xxxxxx>
To: <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] Platooning in SUMO
Message-ID:
        <3CE4E0E9CF19094F8562C58D1D8E24C80DA2AE17@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
       
Content-Type: text/plain; charset="iso-8859-1"

I wasn't able to reproduce the error, either. Please send a minimal failing example.
Best,
Leo

________________________________________
Von: sumo-user-bounces@xxxxxxxxxxx [sumo-user-bounces@xxxxxxxxxxx]&quot; im Auftrag von &quot;Michael Behrisch [oss@xxxxxxxxxxx]
Gesendet: Montag, 9. Juli 2018 09:01
An: Sumo project User discussions; Vrinda Khirwadkar (vkhrwdkr)
Betreff: Re: [sumo-user] Platooning in SUMO

Hi,
our tests are just running fine. Can you send your complete example and
also information on the sumo and python version you are using?

Best regards,
Michael

Am 02.07.2018 um 02:19 schrieb Vrinda Khirwadkar (vkhrwdkr):
> Hello Team,
>
> I am trying to implement a Platoon model using the following
> configuration provided at this link
> :http://sumo.dlr.de/wiki/Simpla#configuration
>
> I am facing issues while using "simpla" with Traci Client. Below is the
> "simpla" configuration file -
>
> <configuration>
>     <vTypeMap original="original_type1" leader="leader_type1"
> follower="follower_type1" catchup ="catchup_type1" catchupFollower
> ="catchupFollower_type1"/>
> </configuration>
> The corresponding vehicle types are mentioned below:
> <routes>
>     <vType id="original_type1" guiShape="truck" vClass="truck"/>
> <vType id="leader_type1" guiShape="truck" vClass="truck"/>
> <vType id="follower_type1" guiShape="truck" vClass="truck"/>
> <vType id="catchup_type1" guiShape="truck" vClass="truck"/>
> <vType id="catchupFollower_type1" guiShape="truck" vClass="truck"/>
> </routes>
>
> I am getting this error : AttributeError: 'PlatoonManager' object has no
> attribute '_controlInterval'.
> Please let me know if i need to change any input configuration or what
> is the correct way ?
>
> Thanks,
>
> Vrinda Khirwadkar
>
> University of Memphis
>
>
>
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>




------------------------------

Message: 2
Date: Mon, 16 Jul 2018 19:37:05 +0300
From: Thanos Tasakos <thanos.tas@xxxxxxxxx>
To: sumo-user@xxxxxxxxxxx
Subject: [sumo-user] Multiple sumo instances
Message-ID:
        <CAAAFAJYfr06EGNPXvcSMG-QO5rZfAr_aVTLdQS9VRjsxw=6JbA@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

Hello,
i want to run in parallel multiple sumo instances (servers) and connect to
them using traci. Can i have multiple traci clients so that i have a 1 to 1
mapping (client to server)?
Each sumo instance is a different experiment and i want to take some
statistics every x seconds from every experiment and if possible combine
them. Is it possible?

Kind regards,
Thanos Tasakos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/sumo-user/attachments/20180716/b4c27c96/attachment.html>

------------------------------

Message: 3
Date: Mon, 16 Jul 2018 13:03:33 -0400
From: Umair Durrani <durraniu@xxxxxxxxxxx>
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] Controlling the lateral alignment via TraCI
Message-ID:
        <CAPsznK711s2U5C7dN999b9q6Gg7eOJKSTgGzK1D_K2zP6uyz6Q@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

Thank you Jakob.

This is a request to the community to please provide any examples of
manipulating vtype behavior using TraCI based on some condition. I have a
particular problem about controlling the lateral alignment, but an example
would help me to write the appropriate code. My problem is explained below.

So, the condition that I want to specify is this: Check the class of the
vehicle which is *parallel* to a particular car (ID = "EXT") in the
neighboring lane.  If the class is a "trailer" then change the lateral
alignment of the "EXT" car, otherwise, keep the alignment at the default
value.

*Parallel *is arbitrary so I want to specify that any part of the
neighboring vehicle is within the range equal to length + 5 meters of "EXT"
(or any other helpful rule).

I have found getLaneIndex(), setLatAlignment(), getLanePosition(), etc.
functions in traci module that are helpful. Now I'm trying to use an if
else statement to write this rule. But am not successful so far. Any ideas
are welcome. Thanks in advance.

best regards,
*Umair Durrani *
Ph.D. Candidate
Civil and Environmental Engineering
LinkedIn <https://www.linkedin.com/in/durraniu/>

On Sun, Jul 15, 2018 at 9:28 AM, Jakob Erdmann <namdre.sumo@xxxxxxxxx>
wrote:

> Hello,
> currently, you can only do this via TraCI by checking the condition
> yourself and then setting the alignment parameter or lateral change
> explicitly.
> regards,
> Jakob
>
> 2018-07-13 17:42 GMT+02:00 Umair Durrani <durraniu@xxxxxxxxxxx>:
>
>> Hi,
>>
>> Is it possible to programmatically change the lateral alignment (and
>> other parameters of sublane model) via TraCI using some condition? For
>> instance, I want to align the vehicle to the left when overtaking a truck
>> but keep it center aligned when overtaking a car.
>>
>> best regards,
>> *Umair Durrani *
>> Ph.D. Candidate
>> Civil and Environmental Engineering
>> LinkedIn <https://www.linkedin.com/in/durraniu/>
>>
>> _______________________________________________
>> sumo-user mailing list
>> sumo-user@xxxxxxxxxxx
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/sumo-user
>>
>>
>
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/sumo-user/attachments/20180716/d28e3747/attachment.html>

------------------------------

Message: 4
Date: Mon, 16 Jul 2018 15:31:41 +0000
From: Stefano Niero via sumo-user <sumo-user@xxxxxxxxxxxxxxxxxxxxx>
To: "sumo-user@xxxxxxxxxxxxxxxxxxxxx"
        <sumo-user@xxxxxxxxxxxxxxxxxxxxx>
Subject: [sumo-user]  POI
Message-ID:
        <AM0PR0502MB3921B2F83AB9B90F379007C3865D0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
       
Content-Type: text/plain; charset="us-ascii"

Hi,
I added a POI in the simulation at a certain point of the simulation. I used this command:
traci.poi.add("station1", 50.0, 50.0, (1,1,0,0))
According to what I found in the documentation. The point is that I don't have any representation in the simulation. I don't see it.
Moreover, is there any way to set the POI giving the edge and the position in the edge instead of using x,y coordinates?

Thank you very much
Stefano Niero
------------------------------------------------------------------------------
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
sumo-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sumo-user


------------------------------

Message: 5
Date: Mon, 16 Jul 2018 23:27:56 +0200
From: Jakob Erdmann <namdre.sumo@xxxxxxxxx>
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] POI
Message-ID:
        <CAMbUcbwu5LOySeWEAtmLTLzE5GO0Vaz6iqnrRd8-1NMrGwzy_Q@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

Hello,
- your POI is invisible because you have set the fourth component (alpha)
to 0
- when loading POIs from an additional file you can define it using
attributes 'lane' and 'pos' as an alternative to 'x','y'.
- Via TraCI you can use the function simulation.convert2D() to compute x,y
positions for a given lane/pos)

regards,
Jakob



2018-07-16 17:32 GMT+02:00 Stefano Niero <stefano.niero@xxxxxxxxxx>:

> Hi,
>
> I added a POI in the simulation at a certain point of the simulation. I
> used this command:
>
> traci.poi.add(?station1?, 50.0, 50.0, (1,1,0,0))
> According to what I found in the documentation. The point is that I don?t
> have any representation in the simulation. I don?t see it.
> Moreover, is there any way to set the POI giving the edge and the position
> in the edge instead of using x,y coordinates?
>
>
>
> Thank you very much
>
> Stefano Niero
>
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/sumo-user/attachments/20180716/bb9d2d29/attachment.html>

------------------------------

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


End of sumo-user Digest, Vol 13, Issue 58
*****************************************

Back to the top