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

nav2d autonomous exploration

asked 2016-06-01 03:05:36 -0500

Alvaro Salcedo gravatar image

updated 2016-06-03 02:39:27 -0500

Every problems before fixed:

EDIT 6: Hi friends!! I have just fixed every problems with your help. So now my robot moves with StartMapping and with StartExplorer, but not really well...

I think that it do good StartMapping but when I do StartExplorer, my robot explores just a few second and it gets stuck in a wall. I think that this problem is for some .yaml parameters.

But I modify a lot of parameters to check if it does a good navigatiion and alwais it gets stuck. Which parameters have I to modify or what I can do???

Thanka lot!

edit retag flag offensive close merge delete

Comments

You are asking very basic questions. You should start by reading and understanding tutorials about topics and launch files. After that, try again by yourself (and probably you will be successful). If even then is not working, came back with a more specific question/problem.

IvanV gravatar image IvanV  ( 2016-06-01 04:01:36 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-06-01 06:55:26 -0500

Sebastian Kasperski gravatar image

The topic "cmd_vel" should be connected to you robot driver for motion commands and "scan" to your laser sensor driver for scan data samples. In the latest release, the parameters for the services are no longer needed, so you can just use them like: "rosservice call /StartExploration".

edit flag offensive delete link more

Comments

@Sebastian Kasperski thanks a lot for answering. I have just edited first post with the current error.!

Alvaro Salcedo gravatar image Alvaro Salcedo  ( 2016-06-01 10:06:51 -0500 )edit

For the second part you need to make a tf tree. Take a look at this tutorial)

Icehawk101 gravatar image Icehawk101  ( 2016-06-01 11:56:59 -0500 )edit

@Icehawk101 I have just fixed that error. Now the error is the next when I call rosservice StartExploration:

[ERROR] Exploration failed, could not get current position.

Alvaro Salcedo gravatar image Alvaro Salcedo  ( 2016-06-01 12:14:31 -0500 )edit

You should make a second edit to your question with the new information.

Icehawk101 gravatar image Icehawk101  ( 2016-06-01 12:36:52 -0500 )edit
Alvaro Salcedo gravatar image Alvaro Salcedo  ( 2016-06-01 12:52:59 -0500 )edit

In your launch file are 2 different mapping nodes and 2 different navigation nodes, this will not work.

Sebastian Kasperski gravatar image Sebastian Kasperski  ( 2016-06-02 02:07:06 -0500 )edit

I have just editted post! @Sebastian Kasperski

Alvaro Salcedo gravatar image Alvaro Salcedo  ( 2016-06-02 04:31:46 -0500 )edit

You also don't need amcl when using slam. Please check the nav2d tutorials. Does your robot move when you send something to cmd_vel? And check with rostopic echo if something is even send on this topic. With just "The robot doesn't move", nobody can help you.

Sebastian Kasperski gravatar image Sebastian Kasperski  ( 2016-06-02 04:40:45 -0500 )edit

@Sebastian Kasperski I have just eddited with more information!! thanks!!

Alvaro Salcedo gravatar image Alvaro Salcedo  ( 2016-06-02 05:04:54 -0500 )edit

@Sebastian Kasperski It gives me this error as well: LaserRangeFinder::Validate() - LocalizedRangeScan contains 672 range readings, expected 673

Alvaro Salcedo gravatar image Alvaro Salcedo  ( 2016-06-02 05:25:40 -0500 )edit

Your laser scans contain angle_min, angle_max and angle_increment, which should match the supplied number of readings. [num_readings = ((angle_max - angle_min) / angle_increment) + 1] Maybe your laser driver sets these values incorrectly.

Sebastian Kasperski gravatar image Sebastian Kasperski  ( 2016-06-02 08:46:48 -0500 )edit

It looks like the array holding the range data has a spot with a NULL value for some reason. What driver are you using for the laser?

Icehawk101 gravatar image Icehawk101  ( 2016-06-02 09:16:13 -0500 )edit

@Sebastian Kasperski@Icehawk101 Hello my friends. I have just edited the post!!! Thanks again,

Alvaro Salcedo gravatar image Alvaro Salcedo  ( 2016-06-03 02:40:11 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2016-06-01 03:05:36 -0500

Seen: 549 times

Last updated: Jun 03 '16