Commit 2528b6ee authored by szymon's avatar szymon
Browse files

Compilation fix, graphics disabled by default

parent 06329788
......@@ -143,7 +143,7 @@ int main(int argc, char **argv)
srand(seed_val);
// }
std::cout << "seed: " << seed << std::endl;
// std::cout << "seed: " << seed << std::endl;
auto seconds = time (nullptr);
std::string run_id {id?id.Get():("ppo_"+std::to_string(seconds))};
......@@ -160,6 +160,12 @@ int main(int argc, char **argv)
bool multi_env = threads.Get()>1;
#ifdef GRAPHIC
if (multi_env){
std::cout << "WARNING: Visuals enabled in a multithreaded mode. Is this intentional?" << std::endl;
}
#endif
if(multi_env){
for (int i =0; i<threads.Get(); ++i){
//TODO: environment selection should be recoverable from serialization as well
......
......@@ -41,7 +41,7 @@ def build(bld):
includes = './cpp . ../../',
uselib = 'ROBOTDART ABSL TBB BOOST EIGEN PTHREAD MPI DART DART_GRAPHIC PROTOBUF TF',
#use = 'sferes2',
defines = ['GRAPHIC'],
defines = [], # defines = ['GRAPHIC'],
target = 'ppo_cpp')
bld.program(features = 'cxx',
......
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