kitti.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:prototype 作者: chutsu 项目源码 文件源码
def plot_gyroscope(self):
        """Plot gyroscope"""
        gyro_x = [data["wf"] for data in self.oxts]
        gyro_y = [data["wl"] for data in self.oxts]
        gyro_z = [data["wu"] for data in self.oxts]

        fig = plt.figure()
        plt.suptitle("Gyroscope")
        ax1 = fig.add_subplot(311)
        ax2 = fig.add_subplot(312)
        ax3 = fig.add_subplot(313)

        ax1.plot(self.timestamps, gyro_x)
        ax1.set_xlabel("Date Time")
        ax1.set_ylabel("rad s^-1")
        ax1.set_xlim([self.timestamps[0], self.timestamps[-1]])

        ax2.plot(self.timestamps, gyro_y)
        ax2.set_xlabel("Date Time")
        ax2.set_ylabel("rad s^-1")
        ax2.set_xlim([self.timestamps[0], self.timestamps[-1]])

        ax3.plot(self.timestamps, gyro_z)
        ax3.set_xlabel("Date Time")
        ax3.set_ylabel("rad s^-1")
        ax3.set_xlim([self.timestamps[0], self.timestamps[-1]])

        fig.tight_layout()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号