Skip to content

Commit fe72816

Browse files
authored
Add missing map_string_vector_string type to tesseract_common.i (#33)
* Fix swig wrapping of kinematic utils * Add missing map_string_vector_string type to tesseract_common.i * Use ptrdiff_t for Eigen::Index, add redundant solutions test
1 parent 45ec5cd commit fe72816

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tesseract_python/swig/tesseract_common_python.i

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
%template(set_string) std::set<std::string>;
6565
%template(pair_string) std::pair<std::string, std::string>;
6666
%template(vector_pair_string) std::vector<std::pair<std::string, std::string> >;
67+
%template(map_string_vector_string) std::unordered_map<std::string, std::vector<std::string>>;
6768
%template(map_string_vector_pair_string) std::unordered_map<std::string, std::vector<std::pair<std::string, std::string>>>;
6869
%template(pair_vector_string) std::pair<std::vector<std::string>, std::vector<std::string>>;
6970

tesseract_python/tests/tesseract_environment/test_tesseract_environment_kingroup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ def test_kinematic_group():
4646

4747
np.testing.assert_allclose(invkin.flatten(),joint_vals)
4848

49+
def test_kinematic_info():
50+
51+
env, manip_info, joint_names = get_environment()
52+
kin_info = env.getKinematicsInformation()
53+
54+
assert list(kin_info.joint_groups) == []
55+
assert list(kin_info.link_groups) == []
4956
def test_tesseract_redundant_solutions_tesseract_function():
5057

5158
env, manip_info, joint_names = get_environment()

0 commit comments

Comments
 (0)