]> rtime.felk.cvut.cz Git - hubacji1/path-to-traj.git/commitdiff
Update Makefile to generate trajectories with our ROS node master
authorMichal Sojka <michal.sojka@cvut.cz>
Tue, 4 Apr 2023 07:07:18 +0000 (09:07 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Tue, 4 Apr 2023 07:07:18 +0000 (09:07 +0200)
For this to work, you should create a symlink to the park binary from
the cf_parking ROS package.

Makefile

index f1cf78944bbcc504375da69d298c040bcc7b8c0b..330ba77093cb6084ee9bccae8345a08c4454ddfe 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,16 @@ SRCS:=$(shell find -name '*.json' -not -name '*.traj.json' -printf '%f\n')
 #SRCS:=pa1.json
 
 TRAJS=$(SRCS:%.json=%.traj.json)
+DATS=$(SRCS:%.json=%.dat)
 
-all: $(TRAJS)
+all: dat
+
+dat: $(DATS)
+
+traj: $(TRAJS)
+
+%.dat: %.json ./park
+       ./park --quiet --sim --log $@ $<
 
 %.traj.json: %.json ./path2traj.py
        ./path2traj.py $<