温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

怎么打开demo_3.5.record读取topic

发布时间:2021-12-21 18:53:00 来源:亿速云 阅读:205 作者:柒染 栏目:大数据

怎么打开demo_3.5.record读取topic,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。

  • 问:如何完成rostopic echo -b .bag -p /topic_name > .txt

  • 答:使用cyber_channel echo /channel_name

例子

播放record文件

\[caros@in-dev-docker:/apollo\]$ cyber\_recorder play -lf data/record/demo\_3.5.record
file: data/record/demo\_3.5.record, chunk\_number: 3, begin\_time: 1546888377338834894 (2019-01-08-03:12:57), end\_time: 1546888422886740928 (2019-01-08-03:13:42), message_number: 61615
earliest\_begin\_time: 1546888377338834894, latest\_end\_time: 1546888422886740928, total\_msg\_num: 61615

Please wait 3 second(s) for loading...
Hit Ctrl+C to stop, Space to pause, or 's' to step.

\[RUNNING\] Record Time: 1546888377.433    Progress: 0.094 / 45.
...

显示channel列表

[caros@in-dev-docker:/apollo]$ cyber_channel list
The number of channels is:  32
/apollo/canbus/chassis
/apollo/canbus/chassis_detail
/apollo/control
/apollo/control/pad
/apollo/drive_event
/apollo/guardian
/apollo/hmi/audio_capture
/apollo/hmi/status
/apollo/localization/msf_gnss
/apollo/localization/msf_lidar
/apollo/localization/msf_status
/apollo/localization/pose
/apollo/monitor
/apollo/monitor/system_status
/apollo/navigation
/apollo/perception/obstacles
/apollo/perception/traffic_light
/apollo/planning
/apollo/prediction
/apollo/routing_request
/apollo/routing_response
/apollo/sensor/gnss/best_pose
/apollo/sensor/gnss/corrected_imu
/apollo/sensor/gnss/gnss_status
/apollo/sensor/gnss/imu
/apollo/sensor/gnss/ins_stat
/apollo/sensor/gnss/odometry
/apollo/sensor/gnss/raw_data
/apollo/sensor/gnss/rtk_eph
/apollo/sensor/gnss/rtk_obs
/tf
/tf_static

显示channel内容

[caros@in-dev-docker:/apollo]$ cyber_channel echo /apollo/sensor/gnss/best_pose
header {
  timestamp_sec: 1545095763.0131655
  module_name: "gnss"
  sequence_num: 3073
}
measurement_time: 1229130981
sol_status: SOL_COMPUTED
sol_type: NARROW_INT
latitude: 37.415249592584814
longitude: -122.00875424407722
height_msl: 1.23227334395051
undulation: -32.1
datum_id: WGS84
latitude_std_dev: 0.0124039669
longitude_std_dev: 0.0176792257
height_std_dev: 0.041889634
base_station_id: "0"
differential_age: 1
solution_age: 0
num_sats_tracked: 11
num_sats_in_solution: 9
num_sats_l1: 9
num_sats_multi: 8
extended_solution_status: 33
galileo_beidou_used_mask: 0
gps_glonass_used_mask: 51

header {
  timestamp_sec: 1545095764.0130444
  module_name: "gnss"
  sequence_num: 3074
}
measurement_time: 1229130982
sol_status: SOL_COMPUTED
sol_type: NARROW_INT
latitude: 37.415306110750976
longitude: -122.0087373614388
height_msl: 1.2385389469563961
undulation: -32.1
datum_id: WGS84
latitude_std_dev: 0.0123673109
longitude_std_dev: 0.0177532453
height_std_dev: 0.0420455635
base_station_id: "0"
differential_age: 1
solution_age: 0
num_sats_tracked: 10
num_sats_in_solution: 8
num_sats_l1: 8
num_sats_multi: 8
extended_solution_status: 33
galileo_beidou_used_mask: 0
gps_glonass_used_mask: 51

header {
  timestamp_sec: 1545095765.0112305
  module_name: "gnss"
  sequence_num: 3075
}
measurement_time: 1229130983
sol_status: SOL_COMPUTED
sol_type: NARROW_INT
latitude: 37.415352879935718
longitude: -122.00872341178777
height_msl: 1.2605287469923496
undulation: -32.1
datum_id: WGS84
latitude_std_dev: 0.0151290251
longitude_std_dev: 0.020376863
height_std_dev: 0.047324948
base_station_id: "0"
differential_age: 2
solution_age: 0
num_sats_tracked: 14
num_sats_in_solution: 10
num_sats_l1: 10
num_sats_multi: 9
extended_solution_status: 33
galileo_beidou_used_mask: 0
gps_glonass_used_mask: 51

header {
  timestamp_sec: 1545095766.0121005
  module_name: "gnss"
  sequence_num: 3076
}
measurement_time: 1229130984
sol_status: SOL_COMPUTED
sol_type: NARROW_INT
latitude: 37.415389343576692
longitude: -122.00871243535052
height_msl: 1.2862052069976926
undulation: -32.1
datum_id: WGS84
latitude_std_dev: 0.0137432581
longitude_std_dev: 0.0162601564
height_std_dev: 0.0376244374
base_station_id: "0"
differential_age: 2
solution_age: 0
num_sats_tracked: 15
num_sats_in_solution: 13
num_sats_l1: 13
num_sats_multi: 11
extended_solution_status: 33
galileo_beidou_used_mask: 0
gps_glonass_used_mask: 51

header {
  timestamp_sec: 1545095767.0116713
  module_name: "gnss"
  sequence_num: 3077
}
measurement_time: 1229130985
sol_status: SOL_COMPUTED
sol_type: NARROW_INT
latitude: 37.415416242281566
longitude: -122.00870413589038
height_msl: 1.3115372871980071
undulation: -32.1
datum_id: WGS84
latitude_std_dev: 0.0126857655
longitude_std_dev: 0.0141515983
height_std_dev: 0.0331060551
base_station_id: "0"
differential_age: 2
solution_age: 0
num_sats_tracked: 16
num_sats_in_solution: 15
num_sats_l1: 15
num_sats_multi: 12
extended_solution_status: 33
galileo_beidou_used_mask: 0
gps_glonass_used_mask: 51

header {
  timestamp_sec: 1545095768.0136344
  module_name: "gnss"
  sequence_num: 3078
}
measurement_time: 1229130986
sol_status: SOL_COMPUTED
sol_type: NARROW_INT
latitude: 37.415433198552719
longitude: -122.0086991019575
height_msl: 1.3455344066023827
undulation: -32.1
datum_id: WGS84
latitude_std_dev: 0.00993473455
longitude_std_dev: 0.0119242864
height_std_dev: 0.0302341301
base_station_id: "0"
differential_age: 1
solution_age: 0
num_sats_tracked: 16
num_sats_in_solution: 16
num_sats_l1: 16
num_sats_multi: 13
extended_solution_status: 33
galileo_beidou_used_mask: 0
gps_glonass_used_mask: 51

看完上述内容,你们掌握怎么打开demo_3.5.record读取topic的方法了吗?如果还想学到更多技能或想了解更多相关内容,欢迎关注亿速云行业资讯频道,感谢各位的阅读!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI