ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

How to compare 2D SLAM algorithms for Memory, CPU and GPU usage? [closed]

asked 2020-07-01 14:53:10 -0500

dhaour9x gravatar image

Hi everyone,

I'm trying to compare 2D SLAM algorithms :

  • Gmapping
  • hector SLAM
  • karto SLAM
  • Cartographer

    for CPU and GPU usage but I don't know how to do that for each SLAM . So I'm using top and htop to visualize the memory and CPU usage for all running tools. and it shows me that gmapping has 14% CPU usage of 8 CPU
    image description image description image description

I'm using VMware ubuntu 16.04

I appreciate your help.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by dhaour9x
close date 2022-05-24 03:58:03.824784

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-10-31 00:05:50 -0500

trejkev gravatar image

Hi mate, there is already a ros node that does it for you through a python library called psutil, it records the CPU and MEM usage for all the nodes running. You may use a rosbag to record the data and then read it through MATLAB or so. The link to the repo containing the node is this https://github.com/alspitz/cpu_monitor

Hope my answer helps!

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-07-01 14:53:10 -0500

Seen: 473 times

Last updated: Oct 31 '21