Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
autonomousdriving
torcs_dl
Commits
7ac6d088
Commit
7ac6d088
authored
Apr 10, 2018
by
Svetlana
Browse files
Build all and run all scripts.
parent
13a3d4ad
Changes
4
Hide whitespace changes
Inline
Side-by-side
RosWorkspace/src/publisher/src/main.cpp
View file @
7ac6d088
...
...
@@ -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
();
...
...
TorcsEMAMGenerator/src/main/models/dp/Featureextraction.emam
View file @
7ac6d088
...
...
@@ -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
);
}
}
build_all.sh
0 → 100755
View file @
7ac6d088
%!/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."
run_all.sh
0 → 100755
View file @
7ac6d088
%!/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 &
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment