Hello Marc,
the implementation of person.moveToXY is incomplete insofar it only allows
moving pedestrians within the edges of their current walking route. For
latest changes, you can track https://github.com/eclipse/sumo/issues/2872
If you can updated the walking route before calling moveToXY, you should be
fine.
regards,
Jakob


Am Do., 10. Okt. 2019 um 14:39 Uhr schrieb Marc Zofka <[email protected]>:

> Hi Mirko, dear Michael,
>
> thanks for the hint.
>
> The C++ implementation inside the TraCI C++ API has been quite forward and
> intuitive.
>
> The problem arises, if the person is spawned and then shall be moved
> freely:
> Apparently, the pedestrian is initialized with the state
> WAITING_FOR_DEPART, which causes the following error, when trying to move
> the person in the same time step:
>      >> Command moveToXY is not supported for person 'my_pedestrian' while
> waiting (awaiting departure).
> So, I append an additional walking state with a pseudo route via
> PersonScope::appendWalkingStage(), and then afterwards execute
> PersonScope::moveToXY().
> But then, although calling PersonScope::moveToXY() every simulation cycle
> before step() I obtain the following warning after 2 simulation cycles:
>    >> Person 'my_ped' was removed though being controlled by TraCI
>
> My goal is to move the pedestrian completely free in the scene via TraCI.
> So, are there any constrains I might neglect?
>
> BR,
> Marc
>
>
>
>
>
>
>
> Hi Marc,
>
>   I haven't had a look on the server side, but if the Python API works,
> there is no reason a C++ API implementation should not. You can start from
> C++ vehicle.moveToXY() and adjust the message components from there (remove
> lane ID from the message, change the scope).
>
> Mirko
>
>
> Am 06.10.2019 um 14:20 schrieb Marc Zofka:
> > Dear Michael,
> >
> > thanks for your response. Considering your reference [1], the python
> interface seems to support the movetoXY() capability for persons, whereas
> it is not supported by the C++ TraCI class (TraCIAPI.h). I assume, that is
> should be sufficient to adapt the vehicle scope's method moveToXY() to the
> person scope? Is the TraCI Server supporting this capability?
> >
> > With best regards,
> > Marc
> >
> > [1] https://sumo.dlr.de/pydoc/traci._person.html
> >
> >
> >
> > Hi Marc,
> > to get an overview of what is possible with persons just look at
> https://sumo.dlr.de/pydoc/traci._person.html.
> >
> > Best regards,
> > Michael
> >
> > Am 2019-08-02 11:06, schrieb Marc Zofka:
> >> Dear Sumo-Users,
> >>
> >> is there a way to spawn and control pedestrians using TraCI
> >> programmatically? I would also appreciate if there are some hints on
> >> the wiki. Unfortunately, I could find any hints wrt. pedestrian
> >> control over TraCI except that vehicles can be moved externally.
> >>
> >> With best regards,
> >> Marc Zofka
> >>
> >> _______________________________________________
> >> sumo-user 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-user
> > _______________________________________________
> > sumo-user 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-user
> _______________________________________________
> sumo-user 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-user
> _______________________________________________
> sumo-user 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-user
>
_______________________________________________
sumo-user 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-user

Reply via email to