We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05db94c commit 619aacbCopy full SHA for 619aacb
1 file changed
xbot2_gui/Monitoring/BarPlot/BarPlot.js
@@ -82,7 +82,8 @@ function setJointStateMessage(msg)
82
83
for(var i = 0; i < jointNames.length; i++)
84
{
85
- let bar = container.itemAt(i).bar
+ let barPlotItem = container.itemAt(i)
86
+ let bar = barPlotItem.bar
87
88
// set value
89
bar.value = fieldMsg[i]
@@ -97,8 +98,8 @@ function setJointStateMessage(msg)
97
98
99
// set status
100
if(motorStatus !== undefined) {
- bar.setMotorStatus(motorStatus[i])
101
- bar.setBrakeStatus(brakeStatus[i])
+ barPlotItem.motorStatus = motorStatus[i]
102
+ barPlotItem.brakeStatus = brakeStatus[i]
103
}
104
105
0 commit comments