#! /usr/bin/env python
# coding=utf-8
from scipy.io import loadmat
read_path=loadmat('/data/ros/yue_wk_2019/src/mobile_robot/src/mobile_control/test_path.mat')
print read_path['pathsmallCirclexythera'],len(read_path['pathsmallCirclexythera'])
# import matplotlib.pyplot as plt
# import numpy as np
# import time
# from math import *
# def test(rad):
#     return ((rad+pi)%(2.0*pi) - pi)/2.0
# print test(0.03)
# plt.ion() #开启interactive mode 成功的关键函数
# plt.figure(1)
# t = [0]
# t_now = 0
# m = [sin(t_now)]
 
# for i in range(2000):
#  t_now = i*0.1
#  t.append(t_now)#模拟数据增量流入
#  m.append(sin(t_now))#模拟数据增量流入
#  plt.plot(t,m,'-r')
#  plt.draw()#注意此函数需要调用
#  plt.pause(0.01)
#! /usr/bin/env python
# coding=utf-8
from scipy.io import loadmat
read_path=loadmat('/data/ros/yue_wk_2019/src/mobile_robot/src/mobile_control/test_path.mat')
print read_path['pathsmallCirclexythera'],len(read_path['pathsmallCirclexythera'])
# import matplotlib.pyplot as plt
# import numpy as np
# import time
# from math import *
# def test(rad):
#     return ((rad+pi)%(2.0*pi) - pi)/2.0
# print test(0.03)
# plt.ion() #开启interactive mode 成功的关键函数
# plt.figure(1)
# t = [0]
# t_now = 0
# m = [sin(t_now)]
 
# for i in range(2000):
#  t_now = i*0.1
#  t.append(t_now)#模拟数据增量流入
#  m.append(sin(t_now))#模拟数据增量流入
#  plt.plot(t,m,'-r')
#  plt.draw()#注意此函数需要调用
#  plt.pause(0.01)
#! /usr/bin/env python # coding=utf-8 # import matplotlib.pyplot as plt # import numpy as np # import time # from math import * # def test(rad): #     return ((rad+pi)%(2.0*pi) - pi)/2.0 # print test(0.03) # plt.ion() #开启interactive mode 成功的关键函数 # plt.figure(1) # t = [0] # t_now = 0 # m = [sin(t_now)] # for i in range(2000): #  t_now = i*0.1 #  t.append(t_now)#模拟数据增量流入 #  m.append(sin(t_now))#模拟数据增量流入 #  plt.plot(t,m,'-r') #  plt.draw()#注意此函数需要调用 #  plt.pause(0.01)