ahq1993 / MPNet

Motion Planning Networks
MIT License
225 stars 50 forks source link

error: expected constructor, destructor, or type conversion before ‘(’ token 56 | mkdir(env_path.c_str(),ACCESSPERMS); #23

Closed huyu94 closed 1 year ago

huyu94 commented 1 year ago

when compiling the dataset I got the following error

[ 25%] Building CXX object src/CMakeFiles/rrtstar.dir/rrts_main.cpp.o
/home/huyu/github/MPNet/data_generation/rrtstar/src/rrts_main.cpp:56:6: error: expected constructor, destructor, or type conversion before ‘(’ token
   56 | mkdir(env_path.c_str(),ACCESSPERMS); // create folder with env label to store generated trajectories
      |      ^
In file included from /home/huyu/github/MPNet/data_generation/rrtstar/src/rrts_main.cpp:13:
/home/huyu/github/MPNet/data_generation/rrtstar/src/rrts.hpp: In member function ‘int RRTstar::Planner<State, Trajectory, System>::iteration(double (&)[2], double, double) [with State = SingleIntegrator::State; Trajectory = SingleIntegrator::Trajectory; System = SingleIntegrator::System]’:
/home/huyu/github/MPNet/data_generation/rrtstar/src/rrts.hpp:506:11: warning: control reaches end of non-void function [-Wreturn-type]
  506 |     State stateRandom;
      |           ^~~~~~~~~~~
make[4]: *** [src/CMakeFiles/rrtstar.dir/build.make:76:src/CMakeFiles/rrtstar.dir/rrts_main.cpp.o] 错误 1
make[3]: *** [CMakeFiles/Makefile2:125:src/CMakeFiles/rrtstar.dir/all] 错误 2
make[2]: *** [Makefile:136:all] 错误 2
make[1]: *** [Makefile:25:all] 错误 2
make: *** [Makefile:15:all] 错误 2