Skip to content

Commit

Permalink
Fix Python bindings
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed Jul 20, 2022
1 parent ff10109 commit 3f9a517
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion python/src/gz/sim/EntityComponentManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace sim
namespace python
{
/////////////////////////////////////////////////
void defineGazeboEntityComponentManager(pybind11::object module)
void defineSimEntityComponentManager(pybind11::object module)
{
pybind11::class_<gz::sim::EntityComponentManager>(
module, "EntityComponentManager")
Expand Down
2 changes: 1 addition & 1 deletion python/src/gz/sim/EntityComponentManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace python
* \param[in] module a pybind11 module to add the definition to
*/
void
defineGazeboEntityComponentManager(pybind11::object module);
defineSimEntityComponentManager(pybind11::object module);
} // namespace python
} // namespace sim
} // namespace gz
Expand Down
2 changes: 1 addition & 1 deletion python/src/gz/sim/EventManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace sim
namespace python
{
/////////////////////////////////////////////////
void defineGazeboEventManager(pybind11::object module)
void defineSimEventManager(pybind11::object module)
{
pybind11::class_<gz::sim::EventManager>(module, "EventManager")
.def(pybind11::init<>());
Expand Down
2 changes: 1 addition & 1 deletion python/src/gz/sim/EventManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace python
* \param[in] module a pybind11 module to add the definition to
*/
void
defineGazeboEventManager(pybind11::object module);
defineSimEventManager(pybind11::object module);
} // namespace python
} // namespace sim
} // namespace gz
Expand Down
2 changes: 1 addition & 1 deletion python/src/gz/sim/TestFixture.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace sim
namespace python
{
void
defineGazeboTestFixture(pybind11::object module)
defineSimTestFixture(pybind11::object module)
{
pybind11::class_<TestFixture, std::shared_ptr<TestFixture>> testFixture(module, "TestFixture");

Expand Down
2 changes: 1 addition & 1 deletion python/src/gz/sim/TestFixture.hh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace python
* \param[in] module a pybind11 module to add the definition to
*/
void
defineGazeboTestFixture(pybind11::object module);
defineSimTestFixture(pybind11::object module);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion python/src/gz/sim/UpdateInfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace sim
{
namespace python
{
void defineGazeboUpdateInfo(pybind11::object module)
void defineSimUpdateInfo(pybind11::object module)
{
pybind11::class_<gz::sim::UpdateInfo>(module, "UpdateInfo")
.def(pybind11::init<>())
Expand Down
2 changes: 1 addition & 1 deletion python/src/gz/sim/UpdateInfo.hh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace python
* \param[in] module a pybind11 module to add the definition to
*/
void
defineGazeboUpdateInfo(pybind11::object module);
defineSimUpdateInfo(pybind11::object module);
} // namespace python
} // namespace sim
} // namespace gz
Expand Down
2 changes: 1 addition & 1 deletion python/src/gz/sim/Util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace sim
{
namespace python
{
void defineGazeboUtil(pybind11::module &_module)
void defineSimUtil(pybind11::module &_module)
{
_module.def("world_entity",
pybind11::overload_cast<const EntityComponentManager &>(
Expand Down
2 changes: 1 addition & 1 deletion python/src/gz/sim/Util.hh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace python
{
/// Define a pybind11 wrapper for a gz::sim::Util
/// \param[in] _module a pybind11 module to add the definition to
void defineGazeboUtil(pybind11::module &_module);
void defineSimUtil(pybind11::module &_module);
} // namespace python
} // namespace sim
} // namespace gz
Expand Down
2 changes: 1 addition & 1 deletion python/src/gz/sim/World.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace sim
{
namespace python
{
void defineGazeboWorld(pybind11::object module)
void defineSimWorld(pybind11::object module)
{
pybind11::class_<gz::sim::World>(module, "World")
.def(pybind11::init<gz::sim::Entity>())
Expand Down
2 changes: 1 addition & 1 deletion python/src/gz/sim/World.hh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace python
* \param[in] module a pybind11 module to add the definition to
*/
void
defineGazeboWorld(pybind11::object module);
defineSimWorld(pybind11::object module);
} // namespace python
} // namespace sim
} // namespace gz
Expand Down
16 changes: 8 additions & 8 deletions python/src/gz/sim/_gz_sim_pybind11.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
#include "Util.hh"
#include "World.hh"

PYBIND11_MODULE(gazebo, m) {
m.doc() = "Gazebo Python Library.";
PYBIND11_MODULE(sim, m) {
m.doc() = "Gazebo Sim Python Library.";

gz::sim::python::defineGazeboEntityComponentManager(m);
gz::sim::python::defineGazeboEventManager(m);
gz::sim::python::defineSimEntityComponentManager(m);
gz::sim::python::defineSimEventManager(m);
gz::sim::python::defineSimServer(m);
gz::sim::python::defineSimServerConfig(m);
gz::sim::python::defineGazeboTestFixture(m);
gz::sim::python::defineGazeboUpdateInfo(m);
gz::sim::python::defineGazeboWorld(m);
gz::sim::python::defineGazeboUtil(m);
gz::sim::python::defineSimTestFixture(m);
gz::sim::python::defineSimUpdateInfo(m);
gz::sim::python::defineSimWorld(m);
gz::sim::python::defineSimUtil(m);
}

0 comments on commit 3f9a517

Please sign in to comment.