diff --git a/ActiveBOWeb/src/components/BaseLayout.vue b/ActiveBOWeb/src/components/BaseLayout.vue deleted file mode 100644 index 2a82599..0000000 --- a/ActiveBOWeb/src/components/BaseLayout.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - - diff --git a/ActiveBOWeb/src/components/ControlPanel.vue b/ActiveBOWeb/src/components/ControlPanel.vue deleted file mode 100644 index db68e28..0000000 --- a/ActiveBOWeb/src/components/ControlPanel.vue +++ /dev/null @@ -1,151 +0,0 @@ - - - - - diff --git a/ActiveBOWeb/src/components/PolicyPlot.vue b/ActiveBOWeb/src/components/PolicyPlot.vue deleted file mode 100644 index 221ca05..0000000 --- a/ActiveBOWeb/src/components/PolicyPlot.vue +++ /dev/null @@ -1,138 +0,0 @@ - - - - - diff --git a/ActiveBOWeb/src/components/RLCanvas.vue b/ActiveBOWeb/src/components/RLCanvas.vue deleted file mode 100644 index f5bd0b1..0000000 --- a/ActiveBOWeb/src/components/RLCanvas.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - diff --git a/ActiveBOWeb/src/components/RewardPlot.vue b/ActiveBOWeb/src/components/RewardPlot.vue deleted file mode 100644 index 2e4336b..0000000 --- a/ActiveBOWeb/src/components/RewardPlot.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - diff --git a/ActiveBOWeb/src/components/RosBar.vue b/ActiveBOWeb/src/components/RosBar.vue deleted file mode 100644 index 8cb2b19..0000000 --- a/ActiveBOWeb/src/components/RosBar.vue +++ /dev/null @@ -1,224 +0,0 @@ - - - - - diff --git a/ActiveBOWeb/src/components/SideBar.vue b/ActiveBOWeb/src/components/SideBar.vue deleted file mode 100644 index ef2bf5f..0000000 --- a/ActiveBOWeb/src/components/SideBar.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - - - diff --git a/ActiveBOWeb/src/components/SubLayout.vue b/ActiveBOWeb/src/components/SubLayout.vue deleted file mode 100644 index a4a2377..0000000 --- a/ActiveBOWeb/src/components/SubLayout.vue +++ /dev/null @@ -1,78 +0,0 @@ - - - - - diff --git a/ActiveBOWeb/src/components/WeightTuner.vue b/ActiveBOWeb/src/components/WeightTuner.vue deleted file mode 100644 index d2d8b3e..0000000 --- a/ActiveBOWeb/src/components/WeightTuner.vue +++ /dev/null @@ -1,67 +0,0 @@ - - - - - diff --git a/ActiveBOWeb/src/js_funs/online_rbf_policy.js b/ActiveBOWeb/src/js_funs/online_rbf_policy.js deleted file mode 100644 index a531f1b..0000000 --- a/ActiveBOWeb/src/js_funs/online_rbf_policy.js +++ /dev/null @@ -1,19 +0,0 @@ -function rbf(x, centre, sigma) { - return Math.exp(-Math.pow(x - centre, 2) / (2 * Math.pow(sigma, 2))); -} - -export function computeRbfCurve(nrPoints, weights) { - const centers = Array.from( - { length: weights.length }, - (_, i) => (i * nrPoints) / (weights.length - 1) - ); - const sigma = centers[1] / (2 * Math.sqrt(2 * Math.log(2))); - - let policy = Array(nrPoints).fill(0); - for (let x = 0; x < nrPoints; x++) { - for (let i = 0; i < centers.length; i++) { - policy[x] += weights[i] * rbf(x, centers[i], sigma); - } - } - return policy; -} diff --git a/ActiveBOWeb/src/store/ControlStore.js b/ActiveBOWeb/src/store/ControlStore.js deleted file mode 100644 index b269dde..0000000 --- a/ActiveBOWeb/src/store/ControlStore.js +++ /dev/null @@ -1,75 +0,0 @@ -import { defineStore } from "pinia"; - -export const useCStore = defineStore("Control Store", { - state: () => { - return { - env: "Mountain Car", - envs: ["Mountain Car", "Cartpole", "Acrobot", "Pendulum"], - metric: "random", - metrics: ["random", "regular", "improvement", "max_acquisition"], - metrics_label: { - random: "Probability", - regular: "Repetition", - improvement: "Improvement Threshold", - max_acquisition: "Threshold", - }, - metric_limits: { - random: [0.0, 1.0, 0.01], - regular: [1, 100, 1], - improvement: [0.0, 1.0, 0.01], - max_acquisition: [1, 200, 1], - }, - acq_fun: "Expected Improvement", - acq_funs: [ - "Expected Improvement", - "Probability of Improvement", - "Upper Confidence Bound", - ], - nr_episodes: 50, - nr_runs: 10, - metric_parameter: 0.5, - improvement_2: 5, - sendWeights: false, - runner: false, - fixed_seed: false, - save_result: false, - overwrite: false, - }; - }, - getters: { - getEnv: (state) => state.env, - getMetric: (state) => state.metric, - getNrEpisodes: (state) => state.nr_episodes, - getNrRuns: (state) => state.nr_runs, - getMetricParameter: (state) => state.metric_parameter, - getSendWeights: (state) => state.sendWeights, - getRunner: (state) => state.runner, - getAcq: (state) => state.acq_fun, - }, - actions: { - setEnv(value) { - this.env = value; - }, - setMetric(value) { - this.metric = value; - }, - setNrEpisodes(value) { - this.nr_episodes = value; - }, - setNrRuns(value) { - this.nr_runs = value; - }, - setMetricParameter(value) { - this.metric_parameter = value; - }, - setSendWeights() { - this.sendWeights = !this.sendWeights; - }, - setRunner() { - this.runner = !this.runner; - }, - setAcq(value) { - this.acq_fun = value; - }, - }, -}); diff --git a/ActiveBOWeb/src/store/PolicyStore.js b/ActiveBOWeb/src/store/PolicyStore.js deleted file mode 100644 index e41c867..0000000 --- a/ActiveBOWeb/src/store/PolicyStore.js +++ /dev/null @@ -1,47 +0,0 @@ -import { defineStore } from "pinia"; - -export const usePStore = defineStore("Policy Store", { - state: () => { - return { - policy: Array(10).fill(0), - nr_weights: 5, - weights: [0, 0, 0, 0, 0], - weights_fixed: [false, false, false, false, false], - max_steps: 100, - trigger: false, - }; - }, - getters: { - getPolicy: (state) => state.policy, - getNrWeights: (state) => state.nr_weights, - getWeights_Fixed: (state) => state.weights_fixed, - getWeights: (state) => state.weights, - getMaxSteps: (state) => state.max_steps, - getTrigger: (state) => state.trigger, - }, - actions: { - setPolicy(value) { - this.policy = null; - this.policy = value; - }, - setNrWeights(value) { - this.nr_weights = value; - this.weights = Array(this.nr_weights).fill(0); - this.weights_fixed = Array(this.nr_weights).fill(false); - this.trigger = !this.trigger; - }, - setWeights(value) { - this.weights = value; - }, - setMaxSteps(value) { - this.max_steps = value; - this.trigger = !this.trigger; - }, - setTrigger() { - this.trigger = !this.trigger; - }, - resetWeights_Fixed() { - this.weights_fixed = Array(this.nr_weights).fill(false); - }, - }, -}); diff --git a/ActiveBOWeb/src/store/RLStore.js b/ActiveBOWeb/src/store/RLStore.js deleted file mode 100644 index 0851e5c..0000000 --- a/ActiveBOWeb/src/store/RLStore.js +++ /dev/null @@ -1,58 +0,0 @@ -import { defineStore } from "pinia"; - -export const useRLStore = defineStore("RL Store", { - state: () => { - return { - red: Array(153600).fill(120), - green: Array(153600).fill(120), - blue: Array(153600).fill(120), - width: 480, - height: 320, - current_time: 0, - current_run: 0, - current_episode: 0, - best_reward: 0.0, - last_user_reward: 0.0, - trigger: false, - }; - }, - getters: { - getRed: (state) => state.red, - getGreen: (state) => state.green, - getBlue: (state) => state.blue, - getHeight: (state) => state.height, - getWidth: (state) => state.width, - getCurrentTime: (state) => state.current_time, - getCurrentRun: (state) => state.current_run, - getCurrentEpisode: (state) => state.current_episode, - getBestReward: (state) => state.best_reward, - getLastUserReward: (state) => state.last_user_reward, - }, - actions: { - setRgbArrays(red, green, blue) { - this.red = red; - this.green = green; - this.blue = blue; - this.trigger = !this.trigger; - }, - setDim(height, width) { - this.height = height; - this.width = width; - }, - setCurrentTime(value) { - this.current_time = value; - }, - setCurrentRun(value) { - this.current_run = value; - }, - setCurrentEpisode(value) { - this.current_episode = value; - }, - setBestReward(value) { - this.best_reward = value; - }, - setLastUserReward(value) { - this.last_user_reward = value; - }, - }, -}); diff --git a/ActiveBOWeb/src/store/RewardStore.js b/ActiveBOWeb/src/store/RewardStore.js deleted file mode 100644 index 7648a84..0000000 --- a/ActiveBOWeb/src/store/RewardStore.js +++ /dev/null @@ -1,30 +0,0 @@ -import { defineStore } from "pinia"; - -export const useRStore = defineStore("Reward Store", { - state: () => { - return { - reward_mean: [], - reward_std: [], - trigger: false, - }; - }, - getters: { - getMean: (state) => state.reward_mean, - getStd: (state) => state.reward_std, - getTrigger: (state) => state.trigger, - }, - actions: { - setMean(value) { - this.reward_mean = value; - }, - setStd(value) { - this.reward_std = value; - this.trigger = !this.trigger; - }, - addMeanManually(value) { - this.reward_mean[this.reward_mean.length] = value; - this.reward_std[this.reward_std.length] = 0; - this.trigger = !this.trigger; - }, - }, -}); diff --git a/ActiveBOWeb/.eslintrc.cjs b/FanucWeb/.eslintrc.cjs similarity index 100% rename from ActiveBOWeb/.eslintrc.cjs rename to FanucWeb/.eslintrc.cjs diff --git a/ActiveBOWeb/.gitignore b/FanucWeb/.gitignore similarity index 100% rename from ActiveBOWeb/.gitignore rename to FanucWeb/.gitignore diff --git a/ActiveBOWeb/.prettierrc.json b/FanucWeb/.prettierrc.json similarity index 100% rename from ActiveBOWeb/.prettierrc.json rename to FanucWeb/.prettierrc.json diff --git a/ActiveBOWeb/.vscode/extensions.json b/FanucWeb/.vscode/extensions.json similarity index 100% rename from ActiveBOWeb/.vscode/extensions.json rename to FanucWeb/.vscode/extensions.json diff --git a/ActiveBOWeb/README.md b/FanucWeb/README.md similarity index 100% rename from ActiveBOWeb/README.md rename to FanucWeb/README.md diff --git a/ActiveBOWeb/env.d.ts b/FanucWeb/env.d.ts similarity index 100% rename from ActiveBOWeb/env.d.ts rename to FanucWeb/env.d.ts diff --git a/ActiveBOWeb/index.html b/FanucWeb/index.html similarity index 91% rename from ActiveBOWeb/index.html rename to FanucWeb/index.html index 2ad8df9..3fe71f1 100644 --- a/ActiveBOWeb/index.html +++ b/FanucWeb/index.html @@ -4,7 +4,7 @@ - Active BO + Fanuc Web
diff --git a/ActiveBOWeb/package.json b/FanucWeb/package.json similarity index 100% rename from ActiveBOWeb/package.json rename to FanucWeb/package.json diff --git a/ActiveBOWeb/public/CPS_White.ico b/FanucWeb/public/CPS_White.ico similarity index 100% rename from ActiveBOWeb/public/CPS_White.ico rename to FanucWeb/public/CPS_White.ico diff --git a/ActiveBOWeb/public/favicon.ico b/FanucWeb/public/favicon.ico similarity index 100% rename from ActiveBOWeb/public/favicon.ico rename to FanucWeb/public/favicon.ico diff --git a/ActiveBOWeb/src/App.vue b/FanucWeb/src/App.vue similarity index 100% rename from ActiveBOWeb/src/App.vue rename to FanucWeb/src/App.vue diff --git a/ActiveBOWeb/src/assets/CPS_Logo_Black.png b/FanucWeb/src/assets/CPS_Logo_Black.png similarity index 100% rename from ActiveBOWeb/src/assets/CPS_Logo_Black.png rename to FanucWeb/src/assets/CPS_Logo_Black.png diff --git a/ActiveBOWeb/src/assets/CPS_Logo_White.png b/FanucWeb/src/assets/CPS_Logo_White.png similarity index 100% rename from ActiveBOWeb/src/assets/CPS_Logo_White.png rename to FanucWeb/src/assets/CPS_Logo_White.png diff --git a/FanucWeb/src/components/BaseLayout.vue b/FanucWeb/src/components/BaseLayout.vue new file mode 100644 index 0000000..22561c2 --- /dev/null +++ b/FanucWeb/src/components/BaseLayout.vue @@ -0,0 +1,15 @@ + + + + + diff --git a/FanucWeb/src/components/RosBar.vue b/FanucWeb/src/components/RosBar.vue new file mode 100644 index 0000000..0a09d8c --- /dev/null +++ b/FanucWeb/src/components/RosBar.vue @@ -0,0 +1,104 @@ + + + + + diff --git a/FanucWeb/src/components/SideBar.vue b/FanucWeb/src/components/SideBar.vue new file mode 100644 index 0000000..400c25b --- /dev/null +++ b/FanucWeb/src/components/SideBar.vue @@ -0,0 +1,21 @@ + + + + + diff --git a/FanucWeb/src/components/SubLayout.vue b/FanucWeb/src/components/SubLayout.vue new file mode 100644 index 0000000..8fcdcb1 --- /dev/null +++ b/FanucWeb/src/components/SubLayout.vue @@ -0,0 +1,19 @@ + + + + + diff --git a/ActiveBOWeb/src/components/TopBar.vue b/FanucWeb/src/components/TopBar.vue similarity index 100% rename from ActiveBOWeb/src/components/TopBar.vue rename to FanucWeb/src/components/TopBar.vue diff --git a/ActiveBOWeb/src/main.ts b/FanucWeb/src/main.ts similarity index 100% rename from ActiveBOWeb/src/main.ts rename to FanucWeb/src/main.ts diff --git a/ActiveBOWeb/src/store/BaseWebsiteStore.js b/FanucWeb/src/store/BaseWebsiteStore.js similarity index 100% rename from ActiveBOWeb/src/store/BaseWebsiteStore.js rename to FanucWeb/src/store/BaseWebsiteStore.js diff --git a/ActiveBOWeb/tsconfig.config.json b/FanucWeb/tsconfig.config.json similarity index 100% rename from ActiveBOWeb/tsconfig.config.json rename to FanucWeb/tsconfig.config.json diff --git a/ActiveBOWeb/tsconfig.json b/FanucWeb/tsconfig.json similarity index 100% rename from ActiveBOWeb/tsconfig.json rename to FanucWeb/tsconfig.json diff --git a/ActiveBOWeb/vite.config.ts b/FanucWeb/vite.config.ts similarity index 100% rename from ActiveBOWeb/vite.config.ts rename to FanucWeb/vite.config.ts