Skip to content

Commit

Permalink
Fixed relative path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
a-krawciw committed Jan 30, 2023
1 parent 132c081 commit 2a0183f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/src/vtr_pose_graph/src/serializable/rc_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void RCGraph::saveGraphIndex() {

msg_->locked().get().setData(data);

GraphMsgAccessor accessor{fs::path{file_path_} / "index", "index", "vtr_pose_graph_msgs/msg/Graph"};
GraphMsgAccessor accessor{fs::path{file_path_}, "index", "vtr_pose_graph_msgs/msg/Graph"};
accessor.write(msg_);
}

Expand All @@ -143,14 +143,14 @@ void RCGraph::saveVertices() {
iter->second->unload();

CLOG(DEBUG, "pose_graph") << "Saving vertices to disk";
VertexMsgAccessor accessor{fs::path{file_path_} / "vertices", "vertices", "vtr_pose_graph_msgs/msg/Vertex"};
VertexMsgAccessor accessor{fs::path{file_path_}, "vertices", "vtr_pose_graph_msgs/msg/Vertex"};
for (auto it = vertices_.begin(); it != vertices_.end(); ++it)
accessor.write(it->second->serialize());
}

void RCGraph::saveEdges() {
CLOG(DEBUG, "pose_graph") << "Saving edges to disk";
EdgeMsgAccessor accessor{fs::path{file_path_} / "edges", "edges", "vtr_pose_graph_msgs/msg/Edge"};
EdgeMsgAccessor accessor{fs::path{file_path_}, "edges", "vtr_pose_graph_msgs/msg/Edge"};
for (auto it = edges_.begin(); it != edges_.end(); ++it)
accessor.write(it->second->serialize());
}
Expand Down

0 comments on commit 2a0183f

Please sign in to comment.