Skip to content

releases/v0.4.0

Choose a tag to compare

@github-actions github-actions released this 17 Mar 15:36
· 120 commits to main since this release
2c7f9e3

Breaking change: Instance class

The SDK now features a single Instance class which manages application-global initialization and state. Every SDK program must define an Instance variable before any other Viam SDK objects are constructed. Typically this will look like

#include <viam/sdk/common/instance.hpp
// ...

int main(int argc, char** argv)
{
    Instance inst;
    // ... 
}

Existing code will throw an exception shortly after program startup if this change is not made.

Compilation errors will also occur if your code was making direct use of static Registry member functions. Calls to Registry::some_func() should be replaced with Registry::get().some_func()

What's Changed

New Contributors

Full Changelog: releases/v0.3.0...releases/v0.4.0