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

Example usage #3

Open
mpowelson opened this issue Nov 30, 2020 · 1 comment
Open

Example usage #3

mpowelson opened this issue Nov 30, 2020 · 1 comment

Comments

@mpowelson
Copy link

Is there an example of how to use this with the snap package? Specifically, I want to plot an environment using tesseract_ignition.

@mpowelson
Copy link
Author

mpowelson commented Dec 1, 2020

Turns out there were some issues on my side and also an issue in the snap package (that was fixed in version 0.14). Here are some sparse instructions for getting it working

  1. Install snap from snap store
  2. Install dependencies ignition-common3, ignition-transport8, ignition-msgs5, ignition-math6-eigen3
  3. Rebuild tesseract_visualization to so that the ignition plugin is compiled. You should see this message "Ignition Visualization Library will be built!"
  4. Launch visualization with tesseract-ignition.tesseract-visualization
  5. Use visualization loader to load the plugin and plot away see example here.
  // Dynamically load ignition visualizer if exist
  tesseract_visualization::VisualizationLoader loader;
  auto plotter = loader.get();

  if (plotter != nullptr && tesseract != nullptr)
  {
    plotter->init(tesseract);
    plotter->waitForConnection(3);
    plotter->plotEnvironment();
  }

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