problem with movement goal

asked 2017-06-20 08:55:16 -0500

Alemon gravatar image

updated 2017-06-22 01:39:35 -0500

image description image description Hello, friends. I'm trying to realize movement goal with a rplidar. And below are my tf and nodes frame. I want the move_base node to tell me how to approach a spot in language by TTS. After I run all the nodes, It doesn't seem to work. I got warnings like this: http://chuantu.biz/t5/112/1497967202x... Meanwhile my PC runs slowly feels like overloading. I have ran the fake_move_base demo several times but it goes fluently. Can you help me fix this problem? Thank you so much! image description

#####fake_move_base.launch##### <launch>

          <node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen" clear_params="true">
            <rosparam file="$(find rbx1_nav)/config/fake/costmap_common_params.yaml" command="load" ns="global_costmap" />
            <rosparam file="$(find rbx1_nav)/config/fake/costmap_common_params.yaml" command="load" ns="local_costmap" />
            <rosparam file="$(find rbx1_nav)/config/fake/local_costmap_params.yaml" command="load" />
            <rosparam file="$(find rbx1_nav)/config/fake/global_costmap_params.yaml" command="load" />
            <rosparam file="$(find rbx1_nav)/config/fake/base_local_planner_params.yaml" command="load" />
          </node>

        </launch>

#####costmap_common_params.yaml######

    obstacle_range: 2.5
    raytrace_range: 3.0
    #footprint: [[0.175, 0.175], [0.175, -0.175], [-0.175, -0.175], [-0.175, 0.175]]
    #footprint_inflation: 0.01
    robot_radius: 0.175
    inflation_radius: 0.2
    max_obstacle_height: 0.6
    min_obstacle_height: 0.0
    observation_sources: scan

#####global_costmap_params.yaml######
global_costmap: global_frame: map robot_base_frame: base_footprint update_frequency: 1.0 publish_frequency: 1.0 static_map: true rolling_window: false resolution: 0.01 transform_tolerance: 1.0 map_type: costmap

#####local_costmap_params.yaml######
local_costmap: global_frame: map robot_base_frame: base_footprint update_frequency: 3.0 publish_frequency: 1.0 static_map: true rolling_window: false width: 6.0 height: 6.0 resolution: 0.01 transform_tolerance: 1.0scan: {data_type: LaserScan, topic: /scan, marking: true, clearing: true, expected_update_rate: 0}

edit retag flag offensive close merge delete

Comments

The control loops are running extremely slowly. What PC are you running this on? Can you tell us the CPU and RAM etc.

ufr3c_tjc gravatar image ufr3c_tjc  ( 2017-06-20 17:36:22 -0500 )edit

I run this on my laptop with CPU of a i5-4210M and RAM of 4GB DDRL. And the GPU is GTX850M. I think such load isn't to heavy for my computer to run on. Is it possible that I have some configuration set improperly?

Alemon gravatar image Alemon  ( 2017-06-20 21:50:09 -0500 )edit

Something is chewing up your processing power. I would run the nodes 1 by 1, where possible, to see which is causing it. The rplidar node would be my first guess, as processing lidar data is intensive. Also this isn't the issue, but base_link should be the child of base_footprint and be static.

ufr3c_tjc gravatar image ufr3c_tjc  ( 2017-06-20 22:26:00 -0500 )edit

Thank you ufr3c_tjc : D I just followed what you suggested and upload the screen shot. It seems that the move_base node take the main responsibility. Everything goes well before I give the goal, and then the move_base occupies more than 100% CPU. How am I supposed to deal with it?

Alemon gravatar image Alemon  ( 2017-06-20 23:51:43 -0500 )edit

Makes sense. Can you edit the question to include the contents of the YAML files for move_base? There should be about 6: 3 for costmaps, 1 each for local and global planner, and 1 for move_base itself.

ufr3c_tjc gravatar image ufr3c_tjc  ( 2017-06-20 23:54:10 -0500 )edit

Yep, I've included the YAML files for move_base. Actually it's an original version of tutorial.

Alemon gravatar image Alemon  ( 2017-06-21 00:18:12 -0500 )edit

I don't the see the yaml files.

Humpelstilzchen gravatar image Humpelstilzchen  ( 2017-06-21 00:42:40 -0500 )edit

Can you see it now?

Alemon gravatar image Alemon  ( 2017-06-21 00:49:26 -0500 )edit

Please add them as text, not screenshot. You can use the "preformatted text" option to format them.

Humpelstilzchen gravatar image Humpelstilzchen  ( 2017-06-21 23:28:11 -0500 )edit

I'm sorry. And it's done.

Alemon gravatar image Alemon  ( 2017-06-22 01:40:04 -0500 )edit

I don't see anything wrong in them. Check with "top" what nodes are using most processing power. When overheating the CPU will reduce the clock frequency to cool down. Check with dmesg if that happens to your.

Humpelstilzchen gravatar image Humpelstilzchen  ( 2017-06-23 00:48:57 -0500 )edit

(1/2) The only thing I can see is that the costmaps are both fixed, and that the global costmap has no size set. Try setting a size for the global map. Also maybe try setting the local costmap to be a rolling window, so that it moves with the robot.

ufr3c_tjc gravatar image ufr3c_tjc  ( 2017-06-25 17:49:04 -0500 )edit

(2/2) Also try make sure that the robot stays within the bounds of the costmaps. I'm unsure what happens when it moves outside the costmaps, but it seems that yours has moved outside (judging by the local costmap size and the screenshot). However I don't think these will solve your issue.

ufr3c_tjc gravatar image ufr3c_tjc  ( 2017-06-25 17:50:06 -0500 )edit

Thank you so much for not forsaking me, my friends. I think I've found the reason. When I run those processed above with a smaller yamp map, everything seems works fine. So I guess it's the problem of size of the map.

Alemon gravatar image Alemon  ( 2017-06-25 20:17:55 -0500 )edit

By the way, how can I save a smaller map? I always get 4096*4096 pixels maps with map_saver which is too large to work on. I did not find where to adjust the parameter.

Alemon gravatar image Alemon  ( 2017-06-25 20:22:07 -0500 )edit

Tune the delta (resolution) parameter of gmapping

Humpelstilzchen gravatar image Humpelstilzchen  ( 2017-06-26 02:14:42 -0500 )edit

The size of the map is 16.8Mb. How to reduce it?

Alemon gravatar image Alemon  ( 2017-06-26 07:15:47 -0500 )edit