generate2ros_dpnet_variant.sh 793 Bytes
Newer Older
1 2 3 4 5 6
#!/bin/bash

echo "Cleaning target directory..."
rm -rf target/*

echo "Generating code..."
7
java -cp embedded-montiarc-math-middleware-generator-0.0.12-SNAPSHOT-jar-with-dependencies.jar de.monticore.lang.monticar.generator.middleware.DistributedTargetGeneratorCli --models-dir=src/dpnet_variant/ --root-model=dp.mastercomponent --output-dir=target/Mastercomponent --generators=emadlcpp,roscpp --backend=MXNET
8 9 10 11 12 13

echo "Copying build and run scripts..."
cp -rf resources/scripts/* target/
chmod u+x target/*.sh

echo "Copying CNN weights..."
14 15
cp -rf resources/TORCSComponent target/TORCSComponent
chmod u+x resources/TORCSComponent/*.sh
16 17 18 19 20 21 22
cp -rf resources/dpnet target/model

echo "Building generated code..."
cd target
./build_all.sh

echo "Please start TORCS, configure race and run ./run_all.sh"