cmd1001.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. data = {
  2. # 指令类型
  3. "cmdid": 1001, # 执行行驶任务
  4. # 指令参数
  5. "param": {
  6. # 导航数据
  7. "navigation": [
  8. {
  9. 'type': 'forward', # 方向类型 forward 正向 backward 反向
  10. 'nav_coordinates': [
  11. # 直行轨迹坐标参数
  12. {
  13. "start_point_x": 37.7749,
  14. "start_point_x": 37.7749,
  15. "end_point_x": 40,
  16. "end_point_y": -120
  17. },
  18. # 转弯轨迹坐标参数
  19. {
  20. "start_point_x": 40.7128,
  21. "start_point_y": -74.0060,
  22. "center_point_x": 10,
  23. "center_point_y": 20,
  24. "end_point_x": 50.7128,
  25. "end_point_y": -70.0060
  26. },
  27. ]
  28. },
  29. {
  30. 'type': 'backward',
  31. 'nav_coordinates': [
  32. # 直行轨迹坐标参数
  33. {
  34. "start_point_x": 37.7749,
  35. "start_point_y": 37.7749,
  36. "end_point_x": 40,
  37. "end_point_y": -120
  38. },
  39. # 转弯轨迹坐标参数
  40. {
  41. "start_point_x": 40.7128,
  42. "start_point_y": -74.0060,
  43. "center_point_x": 10,
  44. "center_point_y": 20,
  45. "end_point_x": 50.7128,
  46. "end_point_y": -70.0060
  47. },
  48. ]
  49. },
  50. ],
  51. },
  52. }