0
$\begingroup$

Rosanswers logo

Hi,

I have trouble of understanding how navigation stack works. After days of debugging code to work with navigation stack I have concluded that its either problem in tf or I dont really understand how navigation stack work. Specifically I have a couple of questions/problems:

  1. When I change tf to some reasonable parameters from my initial parameter, that should work, I get that my laser sensor is out of range, exactly - on some negative x or y positions. Does navigation work only with positive x and y?
  2. My simulation is left oriented, so this might be problem with getting to work with navigation. But, when I left x an y signed positive or negative as I get from my odometry or change x to -x to compensate left-right orientation my robot's footprint moves in rviz always in the same direction. Should't be that in opposite direction? Is navigation right oriented? What problem I might get with left-right orientations?
  3. My main problem is that when the robot in, let's say, position (x,y,orient)=(5,5,0) /map frame, and I send goal from rviz in /map frame to (6,5,0), robot gets positive x command velocity from navigation, but when the goal point is reached robot remains to move in +x direction, the output from navigation (cmd_vel) remains the same as before reaching goal. Same problem with y direction, both + and -y.

Some help needed, thanks.


Originally posted by Jack Sparrow on ROS Answers with karma: 83 on 2011-04-19

Post score: 1

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

To add a little bit of clarification on item #1:

The navigation stack will work with negative values for coordinates in a given frame depending on the configuration of its costmaps. Is sounds like perhaps your robot is not localized properly, causing the laser sensor to be outside of the specified map. If you're using AMCL, have you made sure to set the "initialpose" of the robot?


Originally posted by eitan with karma: 2743 on 2011-04-20

This answer was ACCEPTED on the original site

Post score: 1


Original comments

Comment by Jack Sparrow on 2011-04-28:
Yes, 1. was a problem with localization :)

$\endgroup$
0
$\begingroup$

Rosanswers logo

  1. Navigation should work with negative values.
  2. Have a look at the Coordinate Conventions. You will have to send out data in a right-handed coordinate system.
  3. I guess when you fixed 2., this might resolve.

Originally posted by dornhege with karma: 31395 on 2011-04-19

This answer was NOT ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.