Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass on vehicle to problem in a cleaner way #40

Open
timmercy opened this issue May 2, 2016 · 0 comments
Open

Pass on vehicle to problem in a cleaner way #40

timmercy opened this issue May 2, 2016 · 0 comments

Comments

@timmercy
Copy link
Member

timmercy commented May 2, 2016

Trailer example:
For now you make a vehicle, make a trailer, add the vehicle as lead_veh to the trailer and pass the trailer on to problem. This means that you will only simulate the trailer. But the problem should know the trailer AND the vehicle. Therefore I manually add the vehicle to optifather (and not to problem) by putting in p2p_trailer.py:
problem.father.add(vehicle)

Maybe we should think of a cleaner way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant