From 446666f387ec5c3e4845002d41c880b748789e08 Mon Sep 17 00:00:00 2001 From: Niko Date: Tue, 20 Jun 2023 14:43:33 +0200 Subject: [PATCH] fixing the parameters is working --- ActiveBOWeb/src/components/ControlPanel.vue | 2 +- ActiveBOWeb/src/components/RosBar.vue | 5 +++-- ActiveBOWeb/src/components/WeightTuner.vue | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ActiveBOWeb/src/components/ControlPanel.vue b/ActiveBOWeb/src/components/ControlPanel.vue index db96515..db68e28 100644 --- a/ActiveBOWeb/src/components/ControlPanel.vue +++ b/ActiveBOWeb/src/components/ControlPanel.vue @@ -84,7 +84,7 @@ { const active_rl_eval_sub = new ROS.Topic({ ros: ros_eval, name: "/active_rl_eval_request", - messageType: "active_bo_msgs/msg/ActiveRL", + messageType: "active_bo_msgs/msg/ActiveRLEvalRequest", }); const pendingRequest = ref(false); @@ -148,7 +148,7 @@ active_rl_eval_sub.subscribe((msg) => { const active_rl_eval_pub = new ROS.Topic({ ros: ros_eval, name: "/active_rl_eval_response", - messageType: "active_bo_msgs/msg/ActiveRL", + messageType: "active_bo_msgs/msg/ActiveRLEvalResponse", }); watch( @@ -161,6 +161,7 @@ watch( const active_eval_response = new ROS.Message({ policy: pstore.policy, weights: pstore.weights, + overwrite_weight: pstore.weights_fixed, }); console.log(active_eval_response); diff --git a/ActiveBOWeb/src/components/WeightTuner.vue b/ActiveBOWeb/src/components/WeightTuner.vue index fa5345b..d2d8b3e 100644 --- a/ActiveBOWeb/src/components/WeightTuner.vue +++ b/ActiveBOWeb/src/components/WeightTuner.vue @@ -14,7 +14,8 @@ :interval="0.01" :disabled="store.weights_fixed[idx]" /> -