Skip to content

RosOnlineDataProvider hangs when using sim_time #59

@violetteavi

Description

@violetteavi

Description:
Somewhere along the line the RosOnlineDataProvider was limited to a 30 Hz publishing frequency via ros::Rate. Unfortunately, ros::Rate uses sim_time, which stops when a rosbag finishes. Any frame not published by that point gets effectively dropped. This is one or two frames if the VIO pipeline is running quickly, but many frames if VIO can't keep up with the publishing speed of the rosbag (I found out when my computer was low on battery and running suuuper slow).

Command:

roscore
roslaunch kimera_vio_ros kimera_vio_ros_euroc.launch
rviz -d $(rospack find kimera_vio_ros)/rviz/kimera_vio_euroc.rviz
rosbag play --clock /PATH/TO/EUROC_ROSBAG

Please give also the following information:

  • SparkVio branch, tag or commit used: Master, master
  • GTSAM version used:
  • OpenGV version used:
  • OpenCV version used: type opencv_version
  • Operating system and version (e.g. Ubuntu 16.04 or Windows 10): Ubuntu 18.04
  • Did you change the source code? (yes / no): No for the original problem. When I commented out the ros::Rate that fixed the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions