Skip to content

Commit ef65657

Browse files
feat: Refactor rule files and update paths for exercise completion and training initiation
1 parent 71a3b18 commit ef65657

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ RUN npm --prefix /RESTART/gui install && npm --prefix /RESTART/gui run build
4848

4949
# Move the built COCO files to the /app directory
5050
RUN mv /RESTART/build/RESTART /restart \
51+
&& mv /RESTART/rules /rules \
5152
&& mkdir -p /gui && mv /RESTART/gui/dist /gui \
5253
&& rm -rf /RESTART
5354

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ int main()
4040
cc.create_reactive_rule("robot_session", restart::start_session_rule);
4141
cc.create_reactive_rule("robot_rot", restart::start_rot_rule);
4242
{
43-
std::ifstream file("src/start_training.clp");
43+
std::ifstream file("rules/start_training.clp");
4444
std::stringstream buffer;
4545
buffer << file.rdbuf();
4646
cc.create_reactive_rule("start_training", buffer.str());
4747
}
4848
{
49-
std::ifstream file("src/exercise_done.clp");
49+
std::ifstream file("rules/exercise_done.clp");
5050
std::stringstream buffer;
5151
buffer << file.rdbuf();
5252
cc.create_reactive_rule("exercise_done", buffer.str());

0 commit comments

Comments
 (0)