MCPcopy Create free account
hub / github.com/dartsim/dart / ResourceRetriever

Function ResourceRetriever

python/dartpy/common/ResourceRetriever.cpp:42–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40namespace python {
41
42void ResourceRetriever(py::module& m)
43{
44 ::py::class_<
45 dart::common::ResourceRetriever,
46 std::shared_ptr<dart::common::ResourceRetriever>>(m, "ResourceRetriever")
47 .def("exists", &common::ResourceRetriever::exists, ::py::arg("uri"))
48 .def("retrieve", &common::ResourceRetriever::retrieve, ::py::arg("uri"))
49 .def("readAll", &common::ResourceRetriever::readAll, ::py::arg("uri"))
50 .def(
51 "getFilePath",
52 &common::ResourceRetriever::getFilePath,
53 ::py::arg("uri"));
54
55 ::py::class_<
56 dart::common::LocalResourceRetriever,
57 dart::common::ResourceRetriever,
58 std::shared_ptr<dart::common::LocalResourceRetriever>>(
59 m, "LocalResourceRetriever")
60 .def(::py::init<>());
61}
62
63} // namespace python
64} // namespace dart

Callers 1

dart_commonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected