diff --git a/ActiveBOWeb/src/components/ControlPanel.vue b/ActiveBOWeb/src/components/ControlPanel.vue index 9f4475a..71724d5 100644 --- a/ActiveBOWeb/src/components/ControlPanel.vue +++ b/ActiveBOWeb/src/components/ControlPanel.vue @@ -67,7 +67,8 @@ thumb-label :disabled="epsilonRef" /> - + + Send Weights diff --git a/ActiveBOWeb/src/components/RosBar.vue b/ActiveBOWeb/src/components/RosBar.vue index 1fcb687..0b17d5d 100644 --- a/ActiveBOWeb/src/components/RosBar.vue +++ b/ActiveBOWeb/src/components/RosBar.vue @@ -265,6 +265,7 @@ watch( } else if (usr_mode === "active BO" && !active_bo_pending.value) { const request_msg = new ROS.Message({ env: cstore.env, + fixed_seed: cstore.fixed_seed, nr_weights: pstore.nr_weights, max_steps: pstore.max_steps, nr_episodes: cstore.nr_episodes, diff --git a/ActiveBOWeb/src/store/ControlStore.js b/ActiveBOWeb/src/store/ControlStore.js index b9a5d48..99c84f7 100644 --- a/ActiveBOWeb/src/store/ControlStore.js +++ b/ActiveBOWeb/src/store/ControlStore.js @@ -18,6 +18,7 @@ export const useCStore = defineStore("Control Store", { metric_parameter: 0, sendWeights: false, runner: false, + fixed_seed: false, }; }, getters: { diff --git a/ActiveBOWeb/src/store/RLStore.js b/ActiveBOWeb/src/store/RLStore.js index 11e5ff6..ba8b758 100644 --- a/ActiveBOWeb/src/store/RLStore.js +++ b/ActiveBOWeb/src/store/RLStore.js @@ -8,6 +8,7 @@ export const useRLStore = defineStore("RL Store", { blue: Array(153600).fill(120), width: 480, height: 320, + current_time: 0, trigger: false, }; }, @@ -17,6 +18,7 @@ export const useRLStore = defineStore("RL Store", { getBlue: (state) => state.blue, getHeight: (state) => state.height, getWidth: (state) => state.width, + getCurrentTime: (state) => state.current_time, }, actions: { setRgbArrays(red, green, blue) { @@ -29,5 +31,8 @@ export const useRLStore = defineStore("RL Store", { this.height = height; this.width = width; }, + setCurrentTime(value) { + this.current_time = value; + }, }, });