From 75a943e9d8b4f409c556b070f99c7fef198d11a6 Mon Sep 17 00:00:00 2001 From: fan-ziqi Date: Fri, 24 May 2024 12:03:27 +0800 Subject: [PATCH] move matplotlib --- .gitignore | 7 ++++++- src/rl_sar/include/rl_real_a1.hpp | 3 +++ src/rl_sar/include/rl_real_cyberdog.hpp | 3 +++ src/rl_sar/include/rl_sim.hpp | 3 +++ src/rl_sar/library/rl_sdk/rl_sdk.hpp | 4 +--- 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 16071d3..efc853a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,9 @@ devel logs .catkin_tools .vscode -*.csv \ No newline at end of file +*.csv +*lite3* +*fldlar* +.cache +.json +# *gr1t1* \ No newline at end of file diff --git a/src/rl_sar/include/rl_real_a1.hpp b/src/rl_sar/include/rl_real_a1.hpp index d004a49..5390148 100644 --- a/src/rl_sar/include/rl_real_a1.hpp +++ b/src/rl_sar/include/rl_real_a1.hpp @@ -8,6 +8,9 @@ #include // #include +#include "matplotlibcpp.h" +namespace plt = matplotlibcpp; + class RL_Real : public RL { public: diff --git a/src/rl_sar/include/rl_real_cyberdog.hpp b/src/rl_sar/include/rl_real_cyberdog.hpp index 31744fe..0d3b0a6 100644 --- a/src/rl_sar/include/rl_real_cyberdog.hpp +++ b/src/rl_sar/include/rl_real_cyberdog.hpp @@ -9,6 +9,9 @@ #include // #include +#include "matplotlibcpp.h" +namespace plt = matplotlibcpp; + using CyberdogData = Robot_Data; using CyberdogCmd = Motor_Cmd; diff --git a/src/rl_sar/include/rl_sim.hpp b/src/rl_sar/include/rl_sim.hpp index 8c4f579..ed936d7 100644 --- a/src/rl_sar/include/rl_sim.hpp +++ b/src/rl_sar/include/rl_sim.hpp @@ -14,6 +14,9 @@ // #include "robot_msgs/RobotState.h" // #include "robot_msgs/RobotCommand.h" +#include "matplotlibcpp.h" +namespace plt = matplotlibcpp; + class RL_Sim : public RL { public: diff --git a/src/rl_sar/library/rl_sdk/rl_sdk.hpp b/src/rl_sar/library/rl_sdk/rl_sdk.hpp index 6ab4c60..6b91ed7 100644 --- a/src/rl_sar/library/rl_sdk/rl_sdk.hpp +++ b/src/rl_sar/library/rl_sdk/rl_sdk.hpp @@ -4,9 +4,7 @@ #include #include #include - -#include "matplotlibcpp.h" -namespace plt = matplotlibcpp; +#include #include #define CONFIG_PATH CMAKE_CURRENT_SOURCE_DIR "/config.yaml"