MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/H2-Mapping / new_sequence

Function new_sequence

src/dvins/pose_graph/src/pose_graph_node.cpp:69–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67double last_image_time = -1;
68
69void new_sequence()
70{
71 printf("new sequence\n");
72 sequence++;
73 printf("sequence cnt %d \n", sequence);
74 if (sequence > 5)
75 {
76 ROS_WARN("only support 5 sequences since it's boring to copy code for more sequences.");
77 ROS_BREAK();
78 }
79 posegraph.posegraph_visualization->reset();
80 posegraph.publish();
81 m_buf.lock();
82 while(!image_buf.empty())
83 image_buf.pop();
84 while(!point_buf.empty())
85 point_buf.pop();
86 while(!pose_buf.empty())
87 pose_buf.pop();
88 while(!odometry_buf.empty())
89 odometry_buf.pop();
90 m_buf.unlock();
91}
92
93void image_callback(const sensor_msgs::ImageConstPtr &image_msg)
94{

Callers 2

image_callbackFunction · 0.85
commandFunction · 0.85

Calls 3

publishMethod · 0.80
resetMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected