Skip to content

Commit 1ce4533

Browse files
committed
Batch requests for speed up
Signed-off-by: Francisco Martin Rico <[email protected]>
1 parent 0f4a797 commit 1ce4533

File tree

4 files changed

+251
-135
lines changed

4 files changed

+251
-135
lines changed

bica_graph/include/bica_graph/graph_client.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ class GraphClient
111111
std::vector<StringEdge> get_string_edges_from_node_by_data(const std::string& node_src_id, const std::string& expr);
112112
std::vector<StringEdge> get_string_edges_by_data(const std::string& expr);
113113

114-
114+
void begin_batch() {batch_ = true;}
115+
void flush();
115116

116117
void print();
117118
private:
@@ -128,6 +129,9 @@ class GraphClient
128129
// tf2_ros::StaticTransformBroadcaster static_tf_broadcaster_;
129130
tf2_ros::StaticTransformBroadcaster *static_tf_broadcaster_;
130131
tf2_ros::TransformListener tf_listener_;
132+
133+
std::vector<bica_msgs::GraphUpdate> request_;
134+
bool batch_;
131135
};
132136

133137
} // namespace bica_graph

0 commit comments

Comments
 (0)