Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add global localization #91

Merged
merged 10 commits into from
Dec 15, 2017
Merged

Add global localization #91

merged 10 commits into from
Dec 15, 2017

Conversation

at-wat
Copy link
Owner

@at-wat at-wat commented Dec 14, 2017

fixes #4

@at-wat at-wat self-assigned this Dec 14, 2017
@at-wat
Copy link
Owner Author

at-wat commented Dec 14, 2017

PASSED on kinetic

All tests passed

Skipping "src/mcl_3dl/package.xml": 'tests'
build/test_results/mcl_3dl/gtest-test_filter.xml: 3 tests
build/test_results/mcl_3dl/gtest-test_nd.xml: 1 tests
build/test_results/mcl_3dl/gtest-test_pf.xml: 2 tests
build/test_results/mcl_3dl/gtest-test_quat.xml: 4 tests
build/test_results/mcl_3dl/gtest-test_vec3.xml: 5 tests
build/test_results/mcl_3dl/roslint-mcl_3dl.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_localization_rostest.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_tf_rostest.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_pose.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_tf.xml: 1 tests
Summary: 20 tests, 0 errors, 0 failures, 0 skipped

@at-wat
Copy link
Owner Author

at-wat commented Dec 14, 2017

PASSED on indigo

All tests passed

Skipping "src/mcl_3dl/package.xml": 'tests'
build/test_results/mcl_3dl/gtest-test_filter.xml: 3 tests
build/test_results/mcl_3dl/gtest-test_nd.xml: 1 tests
build/test_results/mcl_3dl/gtest-test_pf.xml: 2 tests
build/test_results/mcl_3dl/gtest-test_quat.xml: 4 tests
build/test_results/mcl_3dl/gtest-test_vec3.xml: 5 tests
build/test_results/mcl_3dl/roslint-mcl_3dl.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_localization_rostest.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_tf_rostest.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_pose.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_tf.xml: 1 tests
Summary: 20 tests, 0 errors, 0 failures, 0 skipped

src/mcl_3dl.cpp Outdated
@@ -467,6 +469,11 @@ class MCL3dlNode
std::normal_distribution<float> aa(0.0, fabs(ang) * params_.odom_err_ang_ang);
auto prediction_func = [this, &ll, &la, &al, &aa, &v, &r](State &s)
{
if (fabs(s.rot.norm() - 1.0) > 0.1)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

src/mcl_3dl.cpp Outdated
auto p2 = p;
p2.z += 0.21;
if (!kdtree_->radiusSearch(
p2, 0.2, id, sqdist, 1))
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

floor detection parameter is currently hard coded

src/mcl_3dl.cpp Outdated
}
pcl::VoxelGrid<pcl::PointXYZI> ds;
ds.setInputCloud(points.makeShared());
ds.setLeafSize(0.3, 0.3, 0.3);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hard-code

@at-wat
Copy link
Owner Author

at-wat commented Dec 14, 2017

PASSED on kinetic

All tests passed

Skipping "src/mcl_3dl/package.xml": 'tests'
build/test_results/mcl_3dl/gtest-test_filter.xml: 3 tests
build/test_results/mcl_3dl/gtest-test_nd.xml: 1 tests
build/test_results/mcl_3dl/gtest-test_pf.xml: 2 tests
build/test_results/mcl_3dl/gtest-test_quat.xml: 4 tests
build/test_results/mcl_3dl/gtest-test_vec3.xml: 5 tests
build/test_results/mcl_3dl/roslint-mcl_3dl.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_localization_rostest.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_tf_rostest.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_pose.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_tf.xml: 1 tests
Summary: 20 tests, 0 errors, 0 failures, 0 skipped

@at-wat
Copy link
Owner Author

at-wat commented Dec 14, 2017

PASSED on indigo

All tests passed

Skipping "src/mcl_3dl/package.xml": 'tests'
build/test_results/mcl_3dl/gtest-test_filter.xml: 3 tests
build/test_results/mcl_3dl/gtest-test_nd.xml: 1 tests
build/test_results/mcl_3dl/gtest-test_pf.xml: 2 tests
build/test_results/mcl_3dl/gtest-test_quat.xml: 4 tests
build/test_results/mcl_3dl/gtest-test_vec3.xml: 5 tests
build/test_results/mcl_3dl/roslint-mcl_3dl.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_localization_rostest.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_tf_rostest.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_pose.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_tf.xml: 1 tests
Summary: 20 tests, 0 errors, 0 failures, 0 skipped

@at-wat
Copy link
Owner Author

at-wat commented Dec 15, 2017

PASSED on kinetic

All tests passed

Skipping "src/mcl_3dl/package.xml": 'tests'
build/test_results/mcl_3dl/gtest-test_filter.xml: 3 tests
build/test_results/mcl_3dl/gtest-test_nd.xml: 1 tests
build/test_results/mcl_3dl/gtest-test_pf.xml: 2 tests
build/test_results/mcl_3dl/gtest-test_quat.xml: 4 tests
build/test_results/mcl_3dl/gtest-test_vec3.xml: 5 tests
build/test_results/mcl_3dl/roslint-mcl_3dl.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_localization_rostest.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_tf_rostest.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_pose.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_tf.xml: 1 tests
Summary: 20 tests, 0 errors, 0 failures, 0 skipped

@at-wat
Copy link
Owner Author

at-wat commented Dec 15, 2017

PASSED on indigo

All tests passed

Skipping "src/mcl_3dl/package.xml": 'tests'
build/test_results/mcl_3dl/gtest-test_filter.xml: 3 tests
build/test_results/mcl_3dl/gtest-test_nd.xml: 1 tests
build/test_results/mcl_3dl/gtest-test_pf.xml: 2 tests
build/test_results/mcl_3dl/gtest-test_quat.xml: 4 tests
build/test_results/mcl_3dl/gtest-test_vec3.xml: 5 tests
build/test_results/mcl_3dl/roslint-mcl_3dl.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_localization_rostest.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_tf_rostest.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_pose.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_tf.xml: 1 tests
Summary: 20 tests, 0 errors, 0 failures, 0 skipped

@at-wat
Copy link
Owner Author

at-wat commented Dec 15, 2017

PASSED on kinetic

All tests passed

Skipping "src/mcl_3dl/package.xml": 'tests'
build/test_results/mcl_3dl/gtest-test_filter.xml: 3 tests
build/test_results/mcl_3dl/gtest-test_nd.xml: 1 tests
build/test_results/mcl_3dl/gtest-test_pf.xml: 2 tests
build/test_results/mcl_3dl/gtest-test_quat.xml: 4 tests
build/test_results/mcl_3dl/gtest-test_vec3.xml: 5 tests
build/test_results/mcl_3dl/roslint-mcl_3dl.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_localization_rostest.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_tf_rostest.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_pose.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_tf.xml: 1 tests
Summary: 20 tests, 0 errors, 0 failures, 0 skipped

@at-wat
Copy link
Owner Author

at-wat commented Dec 15, 2017

PASSED on indigo

All tests passed

Skipping "src/mcl_3dl/package.xml": 'tests'
build/test_results/mcl_3dl/gtest-test_filter.xml: 3 tests
build/test_results/mcl_3dl/gtest-test_nd.xml: 1 tests
build/test_results/mcl_3dl/gtest-test_pf.xml: 2 tests
build/test_results/mcl_3dl/gtest-test_quat.xml: 4 tests
build/test_results/mcl_3dl/gtest-test_vec3.xml: 5 tests
build/test_results/mcl_3dl/roslint-mcl_3dl.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_localization_rostest.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_tf_rostest.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_pose.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_tf.xml: 1 tests
Summary: 20 tests, 0 errors, 0 failures, 0 skipped

src/mcl_3dl.cpp Outdated
imu_quat_.x = msg->orientation.x;
imu_quat_.y = msg->orientation.y;
imu_quat_.z = msg->orientation.z;
imu_quat_.w = msg->orientation.w;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

transform required here

@at-wat
Copy link
Owner Author

at-wat commented Dec 15, 2017

PASSED on kinetic

All tests passed

Skipping "src/mcl_3dl/package.xml": 'tests'
build/test_results/mcl_3dl/gtest-test_filter.xml: 3 tests
build/test_results/mcl_3dl/gtest-test_nd.xml: 1 tests
build/test_results/mcl_3dl/gtest-test_pf.xml: 2 tests
build/test_results/mcl_3dl/gtest-test_quat.xml: 4 tests
build/test_results/mcl_3dl/gtest-test_vec3.xml: 5 tests
build/test_results/mcl_3dl/roslint-mcl_3dl.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_localization_rostest.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_tf_rostest.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_pose.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_tf.xml: 1 tests
Summary: 20 tests, 0 errors, 0 failures, 0 skipped

@at-wat
Copy link
Owner Author

at-wat commented Dec 15, 2017

PASSED on indigo

All tests passed

Skipping "src/mcl_3dl/package.xml": 'tests'
build/test_results/mcl_3dl/gtest-test_filter.xml: 3 tests
build/test_results/mcl_3dl/gtest-test_nd.xml: 1 tests
build/test_results/mcl_3dl/gtest-test_pf.xml: 2 tests
build/test_results/mcl_3dl/gtest-test_quat.xml: 4 tests
build/test_results/mcl_3dl/gtest-test_vec3.xml: 5 tests
build/test_results/mcl_3dl/roslint-mcl_3dl.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_localization_rostest.xml: 1 tests
build/test_results/mcl_3dl/rostest-test_tests_tf_rostest.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_pose.xml: 1 tests
build/test_results/mcl_3dl/rosunit-compare_tf.xml: 1 tests
Summary: 20 tests, 0 errors, 0 failures, 0 skipped

@at-wat at-wat merged commit c9b676a into master Dec 15, 2017
@at-wat at-wat deleted the add-global-localization branch December 15, 2017 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add (semi-)global re-localization.
1 participant