From 36c493fb15d2f03cd5c0c5e2cda11bc232ce3780 Mon Sep 17 00:00:00 2001 From: "nikolaus.feith" Date: Thu, 2 Mar 2023 15:03:09 +0100 Subject: [PATCH] image display not working --- .../src/components/MountainCarCanvas.vue | 45 ++++++++++++++++++- ActiveBOWeb/src/components/RosBar.vue | 2 + ActiveBOWeb/src/components/SubLayout.vue | 3 +- ActiveBOWeb/src/store/MountainCarStore.js | 23 +++++----- 4 files changed, 60 insertions(+), 13 deletions(-) diff --git a/ActiveBOWeb/src/components/MountainCarCanvas.vue b/ActiveBOWeb/src/components/MountainCarCanvas.vue index 2dd905f..f577ab5 100644 --- a/ActiveBOWeb/src/components/MountainCarCanvas.vue +++ b/ActiveBOWeb/src/components/MountainCarCanvas.vue @@ -1,8 +1,51 @@ diff --git a/ActiveBOWeb/src/components/RosBar.vue b/ActiveBOWeb/src/components/RosBar.vue index 7c5cd9c..7ffdac9 100644 --- a/ActiveBOWeb/src/components/RosBar.vue +++ b/ActiveBOWeb/src/components/RosBar.vue @@ -127,6 +127,8 @@ const rl_feedback_subscriber = new ROSLIB.Topic({ rl_feedback_subscriber.subscribe( (msg) => { mcstore.setDim(msg.height, msg.width); + mcstore.setRgbArrays(msg.red, msg.green, msg.blue); + console.log(msg) }); const rl_service = new ROSLIB.Service({ diff --git a/ActiveBOWeb/src/components/SubLayout.vue b/ActiveBOWeb/src/components/SubLayout.vue index fa021a1..fa5415d 100644 --- a/ActiveBOWeb/src/components/SubLayout.vue +++ b/ActiveBOWeb/src/components/SubLayout.vue @@ -24,7 +24,7 @@ - + @@ -43,6 +43,7 @@ import WeightTuner from "@/components/WeightTuner.vue"; import RewardPlot from "@/components/RewardPlot.vue"; import PolicyPlot from "@/components/PolicyPlot.vue"; import ControlPanel from "@/components/ControlPanel.vue"; +import MountainCarCanvas from "@/components/MountainCarCanvas.vue";