diff --git a/InteractiveBO/src/components/PolicyPlot.vue b/InteractiveBO/src/components/PolicyPlot.vue index e9d88a0..b5b1608 100644 --- a/InteractiveBO/src/components/PolicyPlot.vue +++ b/InteractiveBO/src/components/PolicyPlot.vue @@ -87,14 +87,14 @@ function buildChart() { grid: { display: false, }, - min: -1, - max: 1, + min: -1.1, + max: 1.1, }, y: { type: "linear", display: true, - min: -1, - max: 1, + min: -1.1, + max: 1.1, }, }, }, diff --git a/InteractiveBO/src/components/RosBar.vue b/InteractiveBO/src/components/RosBar.vue index 0811e5a..a4f2f35 100644 --- a/InteractiveBO/src/components/RosBar.vue +++ b/InteractiveBO/src/components/RosBar.vue @@ -156,7 +156,7 @@ active_rl_eval_sub.subscribe((msg) => { pstore.setPolicy(pol_x); pstore.setPolicy_y(pol_y); pstore.setWeights(weights_x); - pstore.setWeights(weights_y); + pstore.setWeights_y(weights_y); pendingRequest.value = true; }); @@ -179,7 +179,7 @@ watch( const active_eval_response = new ROS.Message({ policy: policy, weights: weights, - overwrite_weight: weights_fixed, + weight_preference: weights_fixed, }); console.log(active_eval_response); @@ -211,7 +211,7 @@ active_bo_response.subscribe((msg) => { pstore.setPolicy(pol_x); pstore.setPolicy_y(pol_y); pstore.setWeights(weights_x); - pstore.setWeights(weights_y); + pstore.setWeights_y(weights_y); rstore.setMean(msg.reward_mean); rstore.setStd(msg.reward_std); active_bo_pending.value = false;