bo 2d tested

This commit is contained in:
Niko Feith 2023-08-28 18:12:33 +02:00
parent 9a70229171
commit 7974dc7a6d
2 changed files with 7 additions and 7 deletions

View File

@ -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,
},
},
},

View File

@ -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;