-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
46 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"""cpp.__init__.py | ||
definitions for the cpp bindings to be importable under bc_exploration.cpp | ||
""" | ||
from __future__ import print_function, absolute_import, division | ||
|
||
from bc_exploration._exploration_cpp import __doc__ as exploration_cpp_doc | ||
from bc_exploration._exploration_cpp import c_astar, c_oriented_astar, c_get_astar_angles, c_check_for_collision | ||
|
||
__doc__ = exploration_cpp_doc | ||
__all__ = ["c_astar", "c_oriented_astar", "c_get_astar_angles", "c_check_for_collision"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
from __future__ import print_function, absolute_import, division | ||
|
||
from bc_exploration import exploration_cpp | ||
import bc_exploration.cpp | ||
|
||
|
||
def test_bindings(): | ||
assert exploration_cpp.__doc__ | ||
assert exploration_cpp.c_astar.__doc__ | ||
assert exploration_cpp.c_oriented_astar.__doc__ | ||
assert exploration_cpp.c_get_astar_angles.__doc__ | ||
assert exploration_cpp.c_check_for_collision.__doc__ | ||
def test_bindings(debug=False): | ||
assert bc_exploration.cpp.__doc__ | ||
assert bc_exploration.cpp.c_astar.__doc__ | ||
assert bc_exploration.cpp.c_oriented_astar.__doc__ | ||
assert bc_exploration.cpp.c_get_astar_angles.__doc__ | ||
assert bc_exploration.cpp.c_check_for_collision.__doc__ | ||
|
||
if debug: | ||
print(bc_exploration.cpp.__doc__) | ||
print(bc_exploration.cpp.c_astar.__name__) | ||
print(bc_exploration.cpp.c_oriented_astar.__doc__) | ||
print(bc_exploration.cpp.c_get_astar_angles.__doc__) | ||
print(bc_exploration.cpp.c_check_for_collision.__doc__) | ||
|
||
|
||
if __name__ == '__main__': | ||
test_bindings(debug=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters