Skip to content

Commit

Permalink
Merge pull request #188 from Patenro/3Dvisualupdate
Browse files Browse the repository at this point in the history
added the z cordinates
  • Loading branch information
Iranaphor authored Jul 17, 2024
2 parents d2bfc7d + 406c912 commit 6206e9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion topological_navigation/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
('share/ament_index/resource_index/packages',
['resource/' + package_name]),
('share/' + package_name, ['package.xml']),
('share/' + package_name + '/config/', glob('config/*', recursive=True))
('share/' + package_name + '/config/', glob('config/*', recursive=True)),
('share/' + package_name + '/launch/', glob('launch/*', recursive=True))
],
install_requires=['setuptools'],
zip_safe=True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,13 @@ def get_zone_marker(self, node):

for j in node['node']['verts']:
vert = Point()
vert.z = 0.05
vert.z = node['node']['pose']['position']['z']
vert.x = node['node']['pose']['position']['x'] + j['x']
vert.y = node['node']['pose']['position']['y'] + j['y']
marker.points.append(vert)

vert = Point()
vert.z = 0.05
vert.z = node['node']['pose']['position']['z']
vert.x = node['node']['pose']['position']['x'] + node['node']['verts'][0]['x']
vert.y = node['node']['pose']['position']['y'] + node['node']['verts'][0]['y']
marker.points.append(vert)
Expand Down

0 comments on commit 6206e9f

Please sign in to comment.