meco-group / omg-tools

Optimal Motion Generation-tools: motion planning made easy
GNU Lesser General Public License v3.0
563 stars 97 forks source link

Pass on vehicle to problem in a cleaner way #40

Open timmercy opened 8 years ago

timmercy commented 8 years ago

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?