{"id":27996523,"url":"https://github.com/borglab/gtsam-project-matlab","last_synced_at":"2025-06-21T09:06:56.222Z","repository":{"id":114255887,"uuid":"346145602","full_name":"borglab/gtsam-project-matlab","owner":"borglab","description":"Project template using GTSAM + Matlab wrapping","archived":false,"fork":false,"pushed_at":"2024-02-22T20:21:40.000Z","size":26,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-21T09:06:41.284Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/borglab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-09T21:12:06.000Z","updated_at":"2025-01-15T19:16:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"3a4d0b1c-b6fe-4deb-b07a-572539dd29c4","html_url":"https://github.com/borglab/gtsam-project-matlab","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/borglab/gtsam-project-matlab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borglab%2Fgtsam-project-matlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borglab%2Fgtsam-project-matlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borglab%2Fgtsam-project-matlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borglab%2Fgtsam-project-matlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borglab","download_url":"https://codeload.github.com/borglab/gtsam-project-matlab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borglab%2Fgtsam-project-matlab/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261095310,"owners_count":23108784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-08T21:45:07.349Z","updated_at":"2025-06-21T09:06:51.211Z","avatar_url":"https://github.com/borglab.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MATLAB Wrapper Example Project\n\nThis project serves as a lightweight example for demonstrating how to wrap C++ code in MATLAB using GTSAM.\n\n## Dependencies\n\nWe recommend installing the [gtwrap](https://github.com/borglab/wrap) project.\n\nOnce the repo is cloned, you can install it via:\n\n```sh\nmkdir build \u0026\u0026 cd build\ncmake ..\nsudo make install\n```\n\n## Compiling\n\nWe follow the regular build procedure inside the `example_project` directory:\n\n```sh\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake -j8\nsudo make install\n\nsudo ldconfig  # ensures the shared object file generated is correctly loaded\n```\n\nIf you have a custom install location, denoted by `\u003cinstall-path\u003e`, you need to update your `LD_LIBRARY_PATH` environment variable.\n\n```sh\nexport LD_LIBRARY_PATH=\u003cinstall-path\u003e/gtsam:$LD_LIBRARY_PATH\n```\n\n## Usage\n\nNow you can open MATLAB and add the `gtsam_toolbox` to the MATLAB path\n\n```matlab\naddpath('/usr/local/gtsam_toolbox')\n```\n\nAt this point you are ready to run the example project. Simply run code like regular MATLAB, e.g.\n\n```matlab\npe = example.PrintExample();\npe.sayHello();\npe.sayGoodbye();\n```\n\n### Issues\n\nIf you see the compiler issue\n\n```\nfatal error: wrap/matlab.h: No such file or directory\n    1 | #include \u003cwrap/matlab.h\u003e\n      |          ^~~~~~~~~~~~~~~\n```\n\nthis means either the gtwrap project is not installed, or you are using the wrapper as provided within GTSAM. In this case, we recommend (re-)installing the gtwrap project as the easiest fix.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborglab%2Fgtsam-project-matlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborglab%2Fgtsam-project-matlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborglab%2Fgtsam-project-matlab/lists"}