Skip to content

Commit 9d397e8

Browse files
author
Murilo M. Marinho
committed
[dqrobotics_modules.cpp and CMakeLists.txt] Added missing DQ_CoppeliaSimInterfaceZMQ to the _dqrobotics module and added proper linking information to prevent import errors.
1 parent 3a52440 commit 9d397e8

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ add_definitions(-DMAX_EXT_API_CONNECTIONS=255)
1818
add_definitions(-DDO_NOT_USE_SHARED_MEMORY)
1919

2020
if(APPLE)
21+
find_package(cppzmq)
2122
message("Building not supported on this platform.")
2223
include_directories(
2324
/usr/local/include/
@@ -149,4 +150,6 @@ pybind11_add_module(_dqrobotics
149150
interfaces/cpp-interface-coppeliasim-zmq/src/dqrobotics/interfaces/coppeliasim/DQ_CoppeliaSimInterfaceZMQ.cpp
150151
src/interfaces/coppeliasim/DQ_CoppeliaSimInterfaceZMQ_py.cpp
151152
)
152-
153+
if(APPLE)
154+
target_link_libraries(_dqrobotics PRIVATE cppzmq)
155+
endif()

src/dqrobotics_module.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -209,5 +209,13 @@ PYBIND11_MODULE(_dqrobotics, m) {
209209

210210
//DQ_JsonReader
211211
init_DQ_JsonReader_py(json11_py);
212+
213+
/*****************************************************
214+
* CoppeliaSim Submodule
215+
* **************************************************/
216+
py::module coppeliasim_py = interfaces_py.def_submodule("_coppeliasim", "The CoppeliaSim submodule of DQ Robotics.");
217+
218+
//DQ_VrepInterface
219+
init_DQ_CoppeliaSimInterfaceZMQ_py(coppeliasim_py);
212220
}
213221

0 commit comments

Comments
 (0)