<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[使用速腾聚创16线雷达用cartographer 3D建图时出现问题]]></title><description><![CDATA[<p dir="auto">我使用IMU和一个16线雷达通过cartographer进行建图，但建图结果特别乱，像这样：<br />
<img src="/assets/uploads/files/1551616189442-2019-03-03-18-08-43%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE.png" alt="2019-03-03 18-08-43屏幕截图.png" class=" img-responsive img-markdown" /><br />
<img src="/assets/uploads/files/1551616195907-2019-03-03-18-08-52%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE.png" alt="2019-03-03 18-08-52屏幕截图.png" class=" img-responsive img-markdown" /><br />
这是IMU和雷达的方向：<br />
<img src="/assets/uploads/files/1551616333324-2-resized.jpg" alt="2.jpg" class=" img-responsive img-markdown" /></p>
<pre><code>&lt;robot
  name="myrobot_udrf"&gt;
   &lt;link
    name="base_link"&gt;
    &lt;visual&gt;
      &lt;origin
        xyz="0 0 0"
        rpy="0 0 0" /&gt;
      &lt;geometry&gt;
        &lt;box size="0.415 .4284 .15"/&gt;
      &lt;/geometry&gt;
      &lt;material
        name=""&gt;
        &lt;color
          rgba="0.098039 0.098039 0.098039 1" /&gt;
      &lt;/material&gt;
    &lt;/visual&gt;
  &lt;/link&gt;

  &lt;link name="base_footprint"/&gt;
  &lt;joint name="base_link_joint" type="fixed"&gt;
    &lt;parent link="base_footprint" /&gt;
    &lt;child link="base_link" /&gt;
    &lt;origin xyz="0 0 0.117635" /&gt;
  &lt;/joint&gt;

  &lt;link
    name="right_front_wheel"&gt;
    &lt;visual&gt;
      &lt;origin
        xyz="0 0 0"
        rpy="0 0 0" /&gt;
      &lt;geometry&gt;
        &lt;cylinder length=".0356" radius="0.057635"/&gt;
      &lt;/geometry&gt;
      &lt;material
        name=""&gt;
        &lt;color
          rgba="0.29412 0.29412 0.29412 1" /&gt;
      &lt;/material&gt;
    &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint
    name="right_front_wheel_joint"
    type="fixed"&gt;
    &lt;origin
      xyz="0.205 -0.2142 -0.06"
      rpy="1.57075 0 0" /&gt;
    &lt;parent
      link="base_link" /&gt;
    &lt;child
      link="right_front_wheel" /&gt;
    &lt;axis
      xyz="0 0 1" /&gt;
  &lt;/joint&gt;

  &lt;link
    name="left_front_wheel"&gt;
    &lt;visual&gt;
      &lt;origin
        xyz="0 0 0"
        rpy="0 0 0" /&gt;
      &lt;geometry&gt;
        &lt;cylinder length=".0356" radius="0.057635"/&gt;
      &lt;/geometry&gt;
      &lt;material
        name="black"&gt;
        &lt;color
          rgba="0.29412 0.29412 0.29412 1" /&gt;
      &lt;/material&gt;
    &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint
    name="left_front_wheel_joint"
    type="fixed"&gt;
    &lt;origin
      xyz="0.205 .2142 -0.06"
      rpy="1.57075 0 0" /&gt;
    &lt;parent
      link="base_link" /&gt;
    &lt;child
      link="left_front_wheel" /&gt;
    &lt;axis
      xyz="0 0 1" /&gt;
  &lt;/joint&gt;

  &lt;link
    name="right_back_wheel"&gt;
    &lt;visual&gt;
      &lt;origin
        xyz="0 0 0"
        rpy="0 0 0" /&gt;
      &lt;geometry&gt;
        &lt;cylinder length=".0356" radius="0.057635"/&gt;
      &lt;/geometry&gt;
      &lt;material
        name="black"&gt;
        &lt;color
          rgba="0.098039 0.098039 0.098039 1" /&gt;
      &lt;/material&gt;
    &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint
    name="right_back_wheel_joint"
    type="fixed"&gt;
    &lt;origin
      xyz="-0.205 -0.2142 -0.06"
      rpy="1.57075 0 0" /&gt;
    &lt;parent
      link="base_link" /&gt;
    &lt;child
      link="right_back_wheel" /&gt;
    &lt;axis
      xyz="0 0 1" /&gt;
  &lt;/joint&gt;

  &lt;link
    name="left_back_wheel"&gt;
    &lt;visual&gt;
      &lt;origin
        xyz="0 0 0"
        rpy="0 0 0" /&gt;
      &lt;geometry&gt;
        &lt;cylinder length=".0356" radius="0.057635"/&gt;
      &lt;/geometry&gt;
      &lt;material
        name="black"&gt;
        &lt;color
          rgba="0.098039 0.098039 0.098039 1" /&gt;
      &lt;/material&gt;
    &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint
    name="left_back_wheel_joint"
    type="fixed"&gt;
    &lt;origin
      xyz="-0.205 0.2142 -0.06"
      rpy="1.57075 0 0" /&gt;
    &lt;parent
      link="base_link" /&gt;
    &lt;child
      link="left_back_wheel" /&gt;
    &lt;axis
      xyz="0 0 1" /&gt;
  &lt;/joint&gt;

  &lt;link name="rslidar"&gt;
    &lt;visual&gt;
      &lt;origin xyz="0 0 0" /&gt;
      &lt;geometry&gt;
        &lt;cylinder length="0.0827" radius="0.0545" /&gt;
      &lt;/geometry&gt;
      &lt;material name="blue"&gt;
        &lt;color rgba="0 0 0.8 1"/&gt;
      &lt;/material&gt;
    &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint name="horizontal_laser_link_joint" type="fixed"&gt;
    &lt;parent link="top_link" /&gt;
    &lt;child link="rslidar" /&gt;
    &lt;origin xyz="-0.07 0 0.04135" rpy="0 0 0" /&gt;
  &lt;/joint&gt;

  &lt;link name="imu"&gt;
    &lt;visual&gt;
      &lt;origin xyz="0 0 0" /&gt;
      &lt;geometry&gt;
        &lt;box size="0.021 .016 .04"/&gt;
      &lt;/geometry&gt;
      &lt;material name="yellow"&gt;
        &lt;color rgba="1 1 0 1"/&gt;
      &lt;/material&gt;
    &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint name="imu_link_joint" type="fixed"&gt;
    &lt;parent link="middle_link" /&gt;
    &lt;child link="imu" /&gt;
    &lt;origin xyz="0 0.023 0.02" rpy="0 0 3.14159" /&gt;
  &lt;/joint&gt;

  &lt;link name="pillar_right_front"&gt;
    &lt;visual&gt;
      &lt;origin xyz="0 0 0"/&gt;
      &lt;geometry&gt;
        &lt;cylinder length="0.38" radius="0.02" /&gt;
      &lt;/geometry&gt;
      &lt;material name="white"&gt;
        &lt;color rgba="1 1 1 1"/&gt;
      &lt;/material&gt;
    &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint name="pillar_right_front_joint" type="fixed"&gt;
    &lt;parent link="base_link" /&gt;
    &lt;child link="pillar_right_front" /&gt;
    &lt;origin xyz="0.15 -0.15 0.19" rpy="0 0 0" /&gt;
  &lt;/joint&gt;

  &lt;link name="pillar_right_back"&gt;
    &lt;visual&gt;
      &lt;origin xyz="0 0 0"/&gt;
      &lt;geometry&gt;
        &lt;cylinder length="0.38" radius="0.02" /&gt;
      &lt;/geometry&gt;
      &lt;material name="white"&gt;
        &lt;color rgba="1 1 1 1"/&gt;
      &lt;/material&gt;
    &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint name="pillar_right_back_joint" type="fixed"&gt;
    &lt;parent link="base_link" /&gt;
    &lt;child link="pillar_right_back" /&gt;
    &lt;origin xyz="-0.15 -0.15 0.19" rpy="0 0 0" /&gt;
  &lt;/joint&gt;

  &lt;link name="pillar_left_front"&gt;
    &lt;visual&gt;
      &lt;origin xyz="0 0 0"/&gt;
      &lt;geometry&gt;
        &lt;cylinder length="0.38" radius="0.02" /&gt;
      &lt;/geometry&gt;
      &lt;material name="white"&gt;
        &lt;color rgba="1 1 1 1"/&gt;
      &lt;/material&gt;
    &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint name="pillar_left_front_joint" type="fixed"&gt;
    &lt;parent link="base_link" /&gt;
    &lt;child link="pillar_left_front" /&gt;
    &lt;origin xyz="0.15 0.15 0.19" rpy="0 0 0" /&gt;
  &lt;/joint&gt;

  &lt;link name="pillar_left_back"&gt;
    &lt;visual&gt;
      &lt;origin xyz="0 0 0"/&gt;
      &lt;geometry&gt;
        &lt;cylinder length="0.38" radius="0.02" /&gt;
      &lt;/geometry&gt;
      &lt;material name="white"&gt;
        &lt;color rgba="1 1 1 1"/&gt;
      &lt;/material&gt;
    &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint name="pillar_left_back_joint" type="fixed"&gt;
    &lt;parent link="base_link" /&gt;
    &lt;child link="pillar_left_back" /&gt;
    &lt;origin xyz="-0.15 0.15 0.19" rpy="0 0 0" /&gt;
  &lt;/joint&gt;

  &lt;link name="middle_link"&gt;
   &lt;visual&gt;
     &lt;origin xyz="0 0 0"/&gt;
     &lt;geometry&gt;
       &lt;box size="0.415 .4284 .001"/&gt;
     &lt;/geometry&gt;
     &lt;material
       name=""&gt;
       &lt;color
         rgba="0.098039 0.098039 0.098039 1" /&gt;
     &lt;/material&gt;
   &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint name="middle_link_joint" type="fixed"&gt;
    &lt;parent link="base_link" /&gt;
    &lt;child link="middle_link" /&gt;
    &lt;origin xyz="0 0 0.38" rpy="0 0 0" /&gt;
  &lt;/joint&gt;

  &lt;link name="top_pillar_right_front"&gt;
    &lt;visual&gt;
      &lt;origin xyz="0 0 0"/&gt;
      &lt;geometry&gt;
        &lt;cylinder length="0.04465" radius="0.01" /&gt;
      &lt;/geometry&gt;
      &lt;material name="white"&gt;
        &lt;color rgba="1 1 1 1"/&gt;
      &lt;/material&gt;
    &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint name="top_pillar_right_front_joint" type="fixed"&gt;
    &lt;parent link="middle_link" /&gt;
    &lt;child link="top_pillar_right_front" /&gt;
    &lt;origin xyz="-0.04 -0.1 0.022" rpy="0 0 0" /&gt;
  &lt;/joint&gt;

  &lt;link name="top_pillar_right_back"&gt;
    &lt;visual&gt;
      &lt;origin xyz="0 0 0"/&gt;
      &lt;geometry&gt;
        &lt;cylinder length="0.04465" radius="0.01" /&gt;
      &lt;/geometry&gt;
      &lt;material name="white"&gt;
        &lt;color rgba="1 1 1 1"/&gt;
      &lt;/material&gt;
    &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint name="top_pillar_right_back_joint" type="fixed"&gt;
    &lt;parent link="middle_link" /&gt;
    &lt;child link="top_pillar_right_back" /&gt;
    &lt;origin xyz="-0.1 -0.1 0.022" rpy="0 0 0" /&gt;
  &lt;/joint&gt;

  &lt;link name="top_pillar_left_front"&gt;
    &lt;visual&gt;
      &lt;origin xyz="0 0 0"/&gt;
      &lt;geometry&gt;
        &lt;cylinder length="0.04465" radius="0.01" /&gt;
      &lt;/geometry&gt;
      &lt;material name="white"&gt;
        &lt;color rgba="1 1 1 1"/&gt;
      &lt;/material&gt;
    &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint name="top_pillar_left_front_joint" type="fixed"&gt;
    &lt;parent link="middle_link" /&gt;
    &lt;child link="top_pillar_left_front" /&gt;
    &lt;origin xyz="-0.04 0.1 0.022" rpy="0 0 0" /&gt;
  &lt;/joint&gt;

  &lt;link name="top_pillar_left_back"&gt;
    &lt;visual&gt;
      &lt;origin xyz="0 0 0"/&gt;
      &lt;geometry&gt;
        &lt;cylinder length="0.04465" radius="0.01" /&gt;
      &lt;/geometry&gt;
      &lt;material name="white"&gt;
        &lt;color rgba="1 1 1 1"/&gt;
      &lt;/material&gt;
    &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint name="top_pillar_left_back_joint" type="fixed"&gt;
    &lt;parent link="middle_link" /&gt;
    &lt;child link="top_pillar_left_back" /&gt;
    &lt;origin xyz="-0.1 0.1 0.022" rpy="0 0 0" /&gt;
  &lt;/joint&gt;

  &lt;link name="top_link"&gt;
   &lt;visual&gt;
     &lt;origin xyz="0 0 0"/&gt;
     &lt;geometry&gt;
       &lt;box size="0.2142 .415 .001"/&gt;
     &lt;/geometry&gt;
     &lt;material
       name=""&gt;
       &lt;color
         rgba="0.098039 0.098039 0.098039 1" /&gt;
     &lt;/material&gt;
   &lt;/visual&gt;
  &lt;/link&gt;
  &lt;joint name="top_link_joint" type="fixed"&gt;
    &lt;parent link="middle_link" /&gt;
    &lt;child link="top_link" /&gt;
    &lt;origin xyz="-0.07 0 0.04465" rpy="0 0 0" /&gt;
  &lt;/joint&gt;

&lt;/robot&gt;
</code></pre>
<p dir="auto">这是我的lua文件：</p>
<pre><code>-- Copyright 2016 The Cartographer Authors
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
--      http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.

include "map_builder.lua"
include "trajectory_builder.lua"
options = {
 map_builder = MAP_BUILDER,
 trajectory_builder = TRAJECTORY_BUILDER,
 map_frame = "map",
 tracking_frame = "imu",
 published_frame = "base_footprint",
 odom_frame = "odom",
 provide_odom_frame = false,
 publish_frame_projected_to_2d = false,
 use_odometry = false,
 use_nav_sat = false,
 use_landmarks = false,
 num_laser_scans = 0,
 num_multi_echo_laser_scans = 0,
 num_subdivisions_per_laser_scan = 1,
 num_point_clouds = 1,
 lookup_transform_timeout_sec = 0.2,
 submap_publish_period_sec = 0.3,
 pose_publish_period_sec = 5e-3,
 trajectory_publish_period_sec = 30e-3,
 rangefinder_sampling_ratio = 1.,
 odometry_sampling_ratio = 1.,
 fixed_frame_pose_sampling_ratio = 1.,
 imu_sampling_ratio = 1.,
 landmarks_sampling_ratio = 1.,
}

TRAJECTORY_BUILDER_3D.num_accumulated_range_data = 1
TRAJECTORY_BUILDER_3D.min_range = 0.2
TRAJECTORY_BUILDER_3D.max_range = 150.
TRAJECTORY_BUILDER_2D.min_z = 0.1
TRAJECTORY_BUILDER_2D.max_z = 1.0
TRAJECTORY_BUILDER_3D.use_online_correlative_scan_matching = false

MAP_BUILDER.use_trajectory_builder_3d = true
MAP_BUILDER.num_background_threads = 7
POSE_GRAPH.optimization_problem.huber_scale = 5e2
POSE_GRAPH.optimization_problem.log_solver_summary = true
POSE_GRAPH.optimize_every_n_nodes = 40
POSE_GRAPH.optimization_problem.ceres_solver_options.max_num_iterations = 20
POSE_GRAPH.constraint_builder.sampling_ratio = 0.03
POSE_GRAPH.constraint_builder.min_score = 0.62
POSE_GRAPH.constraint_builder.global_localization_min_score = 0.66


return options
</code></pre>
<p dir="auto">这个问题我一直不知道什么问题，还请大神指点一下这是什么原因，十分感谢。<br />
还有一个问题，cartographer进行3D建图的话跟踪帧tracking_frame应该是和IMU的帧名一样吗？</p>
]]></description><link>http://community.bwbot.org/topic/679/使用速腾聚创16线雷达用cartographer-3d建图时出现问题</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Nov 2026 05:16:51 GMT</lastBuildDate><atom:link href="http://community.bwbot.org/topic/679.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 03 Mar 2019 12:35:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 使用速腾聚创16线雷达用cartographer 3D建图时出现问题 on Mon, 25 Mar 2019 11:29:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/5">@Yangoogle</a> 最近在学导航有点懵，不知道该怎么下手，请问有没有什么建议？</p>
]]></description><link>http://community.bwbot.org/post/1158</link><guid isPermaLink="true">http://community.bwbot.org/post/1158</guid><dc:creator><![CDATA[Duke-Allen]]></dc:creator><pubDate>Mon, 25 Mar 2019 11:29:09 GMT</pubDate></item><item><title><![CDATA[Reply to 使用速腾聚创16线雷达用cartographer 3D建图时出现问题 on Mon, 25 Mar 2019 01:35:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/793">@Duke-Allen</a> 好吧</p>
]]></description><link>http://community.bwbot.org/post/1152</link><guid isPermaLink="true">http://community.bwbot.org/post/1152</guid><dc:creator><![CDATA[Yangoogle]]></dc:creator><pubDate>Mon, 25 Mar 2019 01:35:41 GMT</pubDate></item><item><title><![CDATA[Reply to 使用速腾聚创16线雷达用cartographer 3D建图时出现问题 on Sat, 23 Mar 2019 03:45:19 GMT]]></title><description><![CDATA[<p dir="auto">是我IMU的数据有问题，己经解决了。</p>
]]></description><link>http://community.bwbot.org/post/1151</link><guid isPermaLink="true">http://community.bwbot.org/post/1151</guid><dc:creator><![CDATA[Duke-Allen]]></dc:creator><pubDate>Sat, 23 Mar 2019 03:45:19 GMT</pubDate></item></channel></rss>