Skip to content

Commit

Permalink
rename python module to ruckig
Browse files Browse the repository at this point in the history
  • Loading branch information
pantor committed Mar 28, 2021
1 parent 999d5b3 commit fceb9a3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ if(BUILD_PYTHON_MODULE)
find_package(pybind11 2.6 REQUIRED)
endif()

pybind11_add_module(_ruckig src/python.cpp)
target_compile_features(_ruckig PUBLIC cxx_std_17)
target_link_libraries(_ruckig PUBLIC ruckig)
pybind11_add_module(python_ruckig src/python.cpp)
target_compile_features(python_ruckig PUBLIC cxx_std_17)
target_link_libraries(python_ruckig PUBLIC ruckig)
set_target_properties(python_ruckig PROPERTIES OUTPUT_NAME ruckig)
endif()


Expand Down
4 changes: 2 additions & 2 deletions examples/position.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
from pathlib import Path
from sys import path

# Path to the build directory including a file similar to '_ruckig.cpython-37m-x86_64-linux-gnu'.
# Path to the build directory including a file similar to 'ruckig.cpython-37m-x86_64-linux-gnu'.
path.insert(0, str(Path(__file__).parent.parent / 'build'))

from _ruckig import InputParameter, OutputParameter, Result, Ruckig
from ruckig import InputParameter, OutputParameter, Result, Ruckig


def walk_through_trajectory(otg, inp):
Expand Down
2 changes: 1 addition & 1 deletion src/python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ py::object handle_dof_error(size_t dofs) {
}


PYBIND11_MODULE(_ruckig, m) {
PYBIND11_MODULE(ruckig, m) {
m.doc() = "Online Trajectory Generation. Real-time and time-optimal trajectory calculation \
given a target waypoint with position, velocity, and acceleration, starting from any initial state \
limited by velocity, acceleration, and jerk constraints.";
Expand Down
4 changes: 2 additions & 2 deletions test/otg_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

path.insert(0, str(Path(__file__).parent.parent / 'build'))

from _ruckig import Quintic, InputParameter, OutputParameter, Result, Ruckig, Smoothie
from _ruckig import Reflexxes
from ruckig import Quintic, InputParameter, OutputParameter, Result, Ruckig, Smoothie
from ruckig import Reflexxes


def walk_through_trajectory(otg, inp, print_table=True):
Expand Down

0 comments on commit fceb9a3

Please sign in to comment.