MCPcopy Create free account
hub / github.com/HaisenbergPeng/ROLL / plot

Method plot

scripts/MISC/topicSubInClass.py:33–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 self.xSLAM.append(odomL.pose.pose.position.x)
32 self.ySLAM.append(odomL.pose.pose.position.y)
33 def plot(self):
34 plt.title('Odometry comparison')
35 plt.plot(self.xWheel,self.yWheel,color='green', label='Wheel encoder')
36 plt.plot(self.xSLAM,self.ySLAM,color='red', label='SLAM odometry')
37 plt.legend()
38 plt.xlabel('X (m)')
39 plt.ylabel('Y (m)')
40 plt.show()
41 def start(self):
42 rospy.spin()
43if __name__ == '__main__':

Callers 1

topicSubInClass.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected