pose array(particle cloud) and robot dont sync , ,always in wrong position

asked 2021-11-14 00:49:35 -0500

sidharth.jeyabal gravatar image

updated 2021-11-17 09:23:13 -0500

Whenever I try to localise robot using 2d pose estimate,the particle clouds always face 90 degree to robot The video for reference is here

[THE LINK]

(https://drive.google.com/file/d/1s4qF...)

EDIT - 1 TF FRAME

EDIT - 2

tf

EDIT-3 image description

EDIT -4 Solution

The front of robot when we create it with urdf should be aligned to the x- axis of the environment so that when you localise the robot the pose array direction aligns with front direction of the robot (i.e , pose array overlaps with x axis of robot).In my case, I faultly aligned robot's front to y-axis . So if I localise the robot with 2d pose estimate the robot will always be aligned at 90 deg to pose array ( since angle between x and y axis is 90 deg) *if things are not clarified fo you feel free to comment *

edit retag flag offensive close merge delete

Comments

Have you tried localizing from launch file instead?. Do you get the same error? In that case it maybe a problem with your transforms.

osilva gravatar image osilva  ( 2021-11-15 17:17:34 -0500 )edit

How it can be done?

sidharth.jeyabal gravatar image sidharth.jeyabal  ( 2021-11-15 17:27:05 -0500 )edit

Take a look at this tutorial on how to create a launch file for this case: https://kapernikov.com/the-ros-robot_...

Can you show the output:

$ rosrun tf view_frames

$ evince frames.pdf
osilva gravatar image osilva  ( 2021-11-15 17:39:27 -0500 )edit

@osilva thanks for stopping by and reading my question.

please go through link i pasted in EDIT-1 for my TF

sidharth.jeyabal gravatar image sidharth.jeyabal  ( 2021-11-15 20:15:07 -0500 )edit

@osilva thanks for the link it did give me some extra boost to my knowledge but, I want to know about particle cloud in Rviz which always points at 90 deg to my robot

sidharth.jeyabal gravatar image sidharth.jeyabal  ( 2021-11-15 20:56:21 -0500 )edit

It could be that hoyuko spawned incorrectly or transforms are offset. Reason I initially asked if you see same behaviour when using launch file is that you can see more details like the pose.

osilva gravatar image osilva  ( 2021-11-15 21:02:46 -0500 )edit

thank you so much.So did you suspect something wrong in my tf tree? If there is something wrong with tf then how can I debug it any idea @osilva

sidharth.jeyabal gravatar image sidharth.jeyabal  ( 2021-11-15 21:07:16 -0500 )edit

Your tf tree looks ok no broken links but it doesn’t give you the transforms in terms of translation or rotation for that you need to get into more details. Pls check this tutorial for debugging tf issues: http://wiki.ros.org/tf/Debugging%20tools

osilva gravatar image osilva  ( 2021-11-15 21:18:58 -0500 )edit