diff --git a/ActiveBOWeb/src/components/ControlPanel.vue b/ActiveBOWeb/src/components/ControlPanel.vue
index cd9aef3..a1d0c12 100644
--- a/ActiveBOWeb/src/components/ControlPanel.vue
+++ b/ActiveBOWeb/src/components/ControlPanel.vue
@@ -1,49 +1,90 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
Send Weights
-
-
Run
-
-
-
+
+
+
diff --git a/ActiveBOWeb/src/components/PolicyPlot.vue b/ActiveBOWeb/src/components/PolicyPlot.vue
index 4df3df2..225c532 100644
--- a/ActiveBOWeb/src/components/PolicyPlot.vue
+++ b/ActiveBOWeb/src/components/PolicyPlot.vue
@@ -1,7 +1,5 @@
-
-
-
+
diff --git a/ActiveBOWeb/src/components/WeightTuner.vue b/ActiveBOWeb/src/components/WeightTuner.vue
index 79078a0..285d28a 100644
--- a/ActiveBOWeb/src/components/WeightTuner.vue
+++ b/ActiveBOWeb/src/components/WeightTuner.vue
@@ -1,19 +1,17 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/ActiveBOWeb/src/rosInterfaces/policy_srv.js b/ActiveBOWeb/src/rosInterfaces/policy_srv.js
deleted file mode 100644
index e5f3dcb..0000000
--- a/ActiveBOWeb/src/rosInterfaces/policy_srv.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import * as ROSLIB from 'roslib';
-import { usePStore } from "../store/PolicyStore";
-
-const store = usePStore();
-
-export function PolicyService(ros) {
- const service = new ROSLIB.Service({
- ros: ros,
- name: '/policy_srv',
- serviceType: 'active_bo_msgs/srv/WeightToPolicy',
- });
-
- const request = new ROSLIB.ServiceRequest({
- weights: store.weights,
- nr_steps: store.nr_steps,
- })
-
-}
diff --git a/ActiveBOWeb/src/store/ControlStore.js b/ActiveBOWeb/src/store/ControlStore.js
index 4e93162..868c890 100644
--- a/ActiveBOWeb/src/store/ControlStore.js
+++ b/ActiveBOWeb/src/store/ControlStore.js
@@ -3,7 +3,8 @@ import { defineStore } from "pinia";
export const useCStore = defineStore('Control Store', {
state: () => {
return {
- user_mode: 'manually',
+ mode: null,
+ user_modes: ['manually', 'BO', 'active BO'],
nr_episodes: 10,
nr_runs: 1,
greedy: 0,
@@ -12,7 +13,7 @@ export const useCStore = defineStore('Control Store', {
}
},
getters: {
- getUserMode: (state) => state.user_mode,
+ getUserMode: (state) => state.mode,
getNrEpisodes: (state) => state.nr_episodes,
getNrRuns: (state) => state.nr_runs,
getGreedy: (state) => state.greedy,
@@ -21,7 +22,7 @@ export const useCStore = defineStore('Control Store', {
},
actions: {
setUserMode(value) {
- this.user_mode = value;
+ this.mode = value;
},
setNrEpisodes(value) {
this.nr_episodes = value;