Commit 7ac6d088 authored by Svetlana's avatar Svetlana

Build all and run all scripts.

parent 13a3d4ad
......@@ -13,11 +13,11 @@ int main(int argc, char **argv)
while (ros::ok())
{
std_msgs::Float64MultiArray msg;
msg.data.resize(512 * 512);
msg.data[0] = double(count) / 1000.; // Set first bit to "iteration/1000" for debugging
std_msgs::Float64MultiArray::Ptr msg(new std_msgs::Float64MultiArray);
msg->data.resize(512 * 512);
msg->data[0] = double(count) / 1000.; // Set first bit to "iteration/1000" for debugging
ROS_INFO("%f", msg.data[0]);
ROS_INFO("%f", msg->data[0]);
chatter_pub.publish(msg);
ros::spinOnce();
loop_rate.sleep();
......
......@@ -2,11 +2,7 @@ package dp;
component Featureextraction {
ports
in Z(0:255)^{512,1} imageIn,
in Z(0:255)^{512,3} imageIn,
out Q(0:1)^{13,1} affordanceOut;
implementation Math {
affordanceOut=mat(1.0);
}
}
%!/bin/bash
echo "Building DriverController"
cd TorcsEMAMGenerator/target/generated-sources-torcs-dl/Drivercontroller
mkdir -p build
cd build
cmake ..
make -j
cd ../../../../..
echo "Building SafetyController"
cd TorcsEMAMGenerator/target/generated-sources-torcs-dl/Safetycontroller
mkdir -p build
cd build
cmake ..
make -j
cd ../../../../..
echo "Building FeatureExtraction"
cd TorcsEMAMGenerator/target/generated-sources-torcs-dl/Featureextraction
mkdir -p build
cd build
cmake ..
make -j
cd ../../../../..
echo "Building ImagePreprocessing"
cd TorcsEMAMGenerator/target/generated-sources-torcs-dl/Imagepreprocessing
mkdir -p build
cd build
cmake ..
make -j
cd ../../../../..
echo
echo "Well done!"
echo "Run ./run_all.sh to run all."
%!/bin/bash
xterm -T DriverController -e TorcsEMAMGenerator/target/generated-sources-torcs-dl/Drivercontroller/build/coordinator/Coordinator_dp_drivercontroller &
xterm -T SafetyController -e TorcsEMAMGenerator/target/generated-sources-torcs-dl/Safetycontroller/build/coordinator/Coordinator_dp_safetycontroller &
xterm -T FeatureExtraction -e TorcsEMAMGenerator/target/generated-sources-torcs-dl/Featureextraction/build/coordinator/Coordinator_dp_featureextraction &
xterm -T ImagePreprocessing -e TorcsEMAMGenerator/target/generated-sources-torcs-dl/Imagepreprocessing/build/coordinator/Coordinator_dp_imagepreprocessing &
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment