Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw pose graph #21

Open
keevindoherty opened this issue Dec 1, 2021 · 0 comments
Open

Draw pose graph #21

keevindoherty opened this issue Dec 1, 2021 · 0 comments

Comments

@keevindoherty
Copy link
Contributor

Would be cool to add functionality similar to the SE-Sync visualizer to show pose graphs.

Not sure what a good "standard input" for this would be. Minimally, we need a std::vector<VizPose> and an edge list std::vector<std::pair<size_t>> consisting of all edges (i,j) in the graph (plus maybe some bonus info about how to display the edge, e.g. color).

One possibility:

struct VizEdge {
size_t i;  // Edge departs node "i"
size_t j;  // Edge is incident to node "j"
Color3f color;  // Color override for edge i,j
}

void DrawGraph(const std::vector<VizPose> &trajectory, const std::vector<VizEdge> &edge_list);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant