Skip to content

Commit 146c617

Browse files
authored
Added the method wait_for_simulation_step_to_end() to fix #50 (#51)
* [DQ_VrepInterface_py.cpp] Added the method wait for simulation step to end. * [DQ_VrepInterface_py.cpp] Updated the comment in the wait_for_simulation_step_to_end() method definition, as sugested by Murilo.
1 parent de1742a commit 146c617

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Diff for: src/interfaces/vrep/DQ_VrepInterface_py.cpp

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
(C) Copyright 2019 DQ Robotics Developers
2+
(C) Copyright 2019-2023 DQ Robotics Developers
33
44
This file is part of DQ Robotics.
55
@@ -17,7 +17,11 @@ This file is part of DQ Robotics.
1717
along with DQ Robotics. If not, see <http://www.gnu.org/licenses/>.
1818
1919
Contributors:
20-
- Murilo M. Marinho ([email protected])
20+
1. Murilo M. Marinho ([email protected])
21+
- Initial implementation.
22+
23+
2. Juan Jose Quiroz Omana ([email protected])
24+
-Added the method wait_for_simulation_step_to_end()
2125
*/
2226

2327
#include "../../dqrobotics_module.h"
@@ -73,6 +77,9 @@ void init_DQ_VrepInterface_py(py::module& m)
7377
//void trigger_next_simulation_step();
7478
dqvrepinterface_py.def("trigger_next_simulation_step", &DQ_VrepInterface::trigger_next_simulation_step, "Sends a synchronization trigger signal to the server.");
7579

80+
//void wait_for_simulation_step_to_end();
81+
dqvrepinterface_py.def("wait_for_simulation_step_to_end", &DQ_VrepInterface::wait_for_simulation_step_to_end, "Waits until the simulation step is finished.");
82+
7683
//dqvrepinterface_py.def("get_object_handle", &DQ_VrepInterface::get_object_handle,"Gets an object handle");
7784
//dqvrepinterface_py.def("get_object_handles",&DQ_VrepInterface::get_object_handles,"Get object handles");
7885

0 commit comments

Comments
 (0)