diff --git a/rocolib/builders/FourWheelCarBuilder.py b/rocolib/builders/FourWheelCarBuilder.py index 82956c6c5f2126cc4aa6252da1bcb6564827e4f1..cfc0e5c5c5d506e60aa623783f113493111b526b 100644 --- a/rocolib/builders/FourWheelCarBuilder.py +++ b/rocolib/builders/FourWheelCarBuilder.py @@ -5,7 +5,8 @@ c = Component() c.addSubcomponent("front", "BrainsTwoWheels") c.addSubcomponent("back", "TwoWheels", inherit=True, prefix=None) -c.addConnection(("back", "sheath1.botedge2"), ("front", "sheath0.botedge2")) +c.addConnection(("front", "sheath0.botedge2"), ("back", "sheath1.botedge2")) +c.addConnection( ("front", "sheath0.botedge0"), ("back", "sheath1.botedge0"), tabWidth=10) c.inheritAllInterfaces("back", prefix=None) diff --git a/rocolib/library/FourWheelCar.yaml b/rocolib/library/FourWheelCar.yaml index 6fd3aea5ba39684f43dbfe40a53b1683f9f7d280..73439a204d9ea35b24a7b80346103a79a7d800f0 100644 --- a/rocolib/library/FourWheelCar.yaml +++ b/rocolib/library/FourWheelCar.yaml @@ -1,10 +1,16 @@ connections: connection0: - - - back - - sheath1.botedge2 - - front - sheath0.botedge2 + - - back + - sheath1.botedge2 - {} + connection1: + - - front + - sheath0.botedge0 + - - back + - sheath1.botedge0 + - tabWidth: 10 interfaces: sheath1.botedge0: interface: sheath1.botedge0