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