Skip to content

Commit 95391d2

Browse files
committed
Add waypoint marks to Carla
1 parent 9cbd273 commit 95391d2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

GlobalPathCarla2ROS.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ def __init__(self, world = " ", ns = " ",source=0,destination=14):
4242

4343
self.p = get_shortest_path(self.graph, self.source, self.destination)
4444

45+
for i in range(self.p.shape[0]):
46+
wp = carla.Location(self.p[i][0],self.p[i][1],self.p[i][2])
47+
world.debug.draw_point(wp, size=0.1, color=carla.Color(0, 255, 0), life_time=300.0,persistent_lines=True)
48+
# print(wp)
49+
50+
51+
52+
4553

4654
# Because ROS Uses right handed coordinate system
4755
# and carla uses left handed coordinated system

0 commit comments

Comments
 (0)