问题标签 [mobile-robot-toolkit]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
240 浏览

mobile-robot-toolkit - 手动编译 mrpt 后,我​​在构建 mrpt 文件时遇到问题

我正在尝试将每个系统与之结合,ros但在此之前我想检查它是否运行良好,所以我运行 file on CLion,但出现了这些错误。

刚开始编译的时候还好,后来mrpt头文件出了点​​问题,我把头文件都删了,手动编译,就出现了这个问题。我能得到一些建议吗?

0 投票
1 回答
64 浏览

compatibility - About ROS_RMPT_SLAM package compiling issue

While doing catkin_make ROS_MRPT_SLAM, I got following error

I guess it's compatibility matter or something because there were missing header files and so on.

This is the ROS_PACKAGE wiki: http://wiki.ros.org/mrpt_slam

And I just followed instruction from official MRPT website.

If the developer or anyone who is familiar with mrpt toolkit sees this question, may I get some advice about these errors?

By the way, I installed mrpt toolkit using the following website's instruction: http://www.mrpt.org/MRPT_in_GNU/Linux_repositories.

0 投票
2 回答
724 浏览

c++ - Tracing a segmentation fault in a 3rd party library: cv::ImageCodecInitializer destructor crashes

We're developing a framework, which directly uses mrpt-1.9 which in turn uses OpenCV 2.4. We were writing unit tests, which segfault when the tests exists (e.g., during cleanup) with an OpenCV error: cv::String::deallocate()

What I have tried:

running with valgrind

AFAIK this could be either us calling an MRPT function incorrectly, or a bug in MRPT itself.

running it with gdb:

I've been trying to debug it in gdb, but I can only go as far as getting the backtrace, but not which part of our code is the one responsible for it. Since it seems to happen after main exits, it is really confusing. Even worse, the class we construct (but do not actually do anything with) does not contain any MRPT classes or objects, so I am guessing this is in MRPT libraries and not our framework.

I've set a breakpoint at break cv::ImageCodecInitializer::~ImageCodecInitializer

and I got as far as:

searched for opencv-2.4 debug

The app is build with debug symbols, but the system does not appear to have opencv-2.4 with debug symbols, so I keep getting the optimized out warning.

searched for actual point of offending function

I've gone through the minified debug executable we've built in order to try and pin-point the issue, and then tried searching for the actual function:

Then I tried to find what GDB has to say about those addresses:

But I can't go anywhere from there, so I searched in GDB to find who constructs this:

Again optimized out.

searched for library which uses the offending function

The function is in libopencv_highgui.so.2.4 so I am guessing that one of MRPT libs is using it, so I went searching for which MRPT libs we're linking against which is using it, and found it:

So, I found that:

And then:

I know this is the library creating the issue, because in our project we use opencv-3.3 statically linked against it. Sadly, the repository we're using does not have debug symbols for MRPT either:

And even worse:

And this is where the journey ends.

What are my options?

  • use another version of mrpt?
  • compile mrpt with debug symbols?
  • compile opencv-2.4 with debug symbols?

Any help, hints or tips are greatly appreciated. If this question is too localized, does not conform to SO standards, please leave a comment and I will update it.

0 投票
1 回答
64 浏览

c++ - MRPT 库 COpenGLScenePtr 未命名类型

我已经mrpt这里安装了运行这个项目。问题是我不断收到以下错误。

scene_flow_visualization.h项目的文件中。

我还验证了有一个名为的头文件COpenGLScenePtr.h,我手动尝试将其添加到内部scene_flow_visualization.h,但这仍然不起作用。

可能是什么问题 ?有没有人帮我摆脱这个请。

0 投票
0 回答
760 浏览

navigation - MRPT ROS 节点:rviz 中的 2D 导航目标不起作用

我最近开始使用 mrpt-ros-pkg 并使用以下命令启动文件:

一切正常,除了我无法在 rviz 上使用 2D Nav Goal 让机器人移动。我将数据发布到/move_base_simple/goal主题,但机器人没有移动。

但是,当我向 rviz 添加面板并将 Teleop 与 topic 一起使用时/cmd_vel,我可以在机器人周围导航(无需定义目标位置)

0 投票
1 回答
42 浏览

ubuntu - 设置机器人尺寸

我正在为大学项目使用 MRPT,特别是 CHolonomicVFF 类。我制作了一个 ROS 节点,它实现了一个简单的避障功能,它似乎可以工作,但我需要一种方法来指定机器人尺寸。我检查了 CHolonomicVFF 类 wiki,但没有发现任何帮助。

非常感谢。

0 投票
2 回答
65 浏览

mobile-robot-toolkit - COccupancyGridMap2D 中的 insertObservation 方法正在产生扭曲的结果

insertObservation中的函数COccupancyGridMap2D接受两个参数,即CPose3DCObservation2DRangeScan值,即使这两个值都是准确的且没有噪声,网格会产生扭曲的边界。我唯一能想到的scan.aperture设置可能会产生这种效果,但这些设置在 2*PI 范围内是正确的,并且点云的其他视觉助手根本没有显示任何翘曲。下面是一个例子。

与地面实况正方形边界相比,右侧的占用网格发生了扭曲。左边的点看起来很好,并且使用相同的光圈和加载 FromVectors 设置。 图片

这是尝试验证您自己的扭曲效果的示例代码。

这是 simplePointsMap 图(红点)与 OccupanyGrid 的图像

从占用网格投射的角度看起来是正确的,具有一致的间隔,但角度仍然偏离单点图,长度看起来还可以,并且似乎每条光线都可以旋转以匹配其中一个红点。可能发生的是映射问题,并且由于我们试图将角度设置为离散的水平和垂直步长,这会导致未对齐。我试过提高分辨率,但这无济于事,我想这是有道理的,因为缩放水平/垂直比例仍然会导致相同的比例和不匹配。不过,我可能会遗漏一些东西,还有什么可能导致这种失真,这是预期的,我们能做的最好的吗?感谢您的任何帮助。

0 投票
1 回答
30 浏览

mobile-robot-toolkit - 如何从 Rawlog 文件中以 txt 格式进行 3d 扫描?

我是 C++ 编程的新手,我目前正在尝试使用带有 mrpt 的 kinect 和 Hokuyo 传感器。rawlog-grabber 应用程序允许我从两个传感器获取扫描,并且我可以使用 rawlog-edit 将 2D-scan (Hokuyo) 作为 txt 文件获取。但我似乎无法将 3D 扫描(kinect)作为 txt 文件获取,我不知道是否有可能:rawlog-edit 没有显示任何类型的功能。

提前感谢您的考虑

0 投票
0 回答
68 浏览

c++ - MRPT CDisplayWindow3D 崩溃,使用 Windows 二进制文件

我正在使用 mrpt 构建一个项目。我在 c++ 项目 Visual Studio 2015 64 位中链接 Windows 二进制文件。当我运行此代码时,创建一个窗口:

//。H

//.cpp(在类的构造函数中)。

我遇到了崩溃,这是:

我有这些包含路径:

这些库链接:

为什么会崩溃?我在这里做错了什么?

谢谢你。

0 投票
1 回答
224 浏览

c++ - MRPT Graph Slam 最小示例

我试图想出一种使用 MRPT 运行图形 slam 应用程序的“最小”方式。传感器数据(LaserScan / Odometry)将由类似于 ROS 的自定义中间件提供。在广泛阅读文档和源代码(MRPT 和 ROS 桥)之后,我想出了以下代码片段:

我在这里的方向正确吗?我错过了什么?