Merge branch 'master' into 22-armhf

This commit is contained in:
Oleg Kalachev
2021-03-24 20:59:33 +03:00
418 changed files with 13437 additions and 172 deletions

View File

@@ -5,10 +5,10 @@ import xml.etree.ElementTree as ET
from string import Template
WORLD_INCLUDE = Template('''
<include>
<uri>model://${model_name}</uri>
<pose>${x} ${y} ${z} ${roll} ${pitch} ${yaw}</pose>
</include>
<include>
<uri>model://${model_name}</uri>
<pose>${x} ${y} ${z} ${roll} ${pitch} ${yaw}</pose>
</include>
''')
def load_world(world_file):
@@ -32,6 +32,7 @@ def add_model(world, model_name, x, y, z, roll, pitch, yaw, index=0):
pitch=pitch,
yaw=yaw
))
model_elem.tail = '\n '
world_elem.insert(index, model_elem)
return world