Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to read odometry #3

Open
jossichrist opened this issue Apr 1, 2018 · 2 comments
Open

How to read odometry #3

jossichrist opened this issue Apr 1, 2018 · 2 comments
Assignees
Labels

Comments

@jossichrist
Copy link

Dear @eborghi10
i want to control w and v using PID. but before i control it, i should get the data from odometry.

So, here is the problem. once i read "yaw" (translated to euler), the robot doesnt rotate as the odometry said.

for example, the "yaw" = 90 degree. but the robot only rotate 30 degree.

what should i do? or should I add IMU?

Regards,

@eborghi10 eborghi10 added the bug label Apr 1, 2018
@eborghi10
Copy link
Owner

I tested what you said and you're right. There is some difference between /odom and the correct rotation. I don't have certainty right now about what is causing the issue but you could implement one of these two things:

  • Create a node that publishes /odom. See this link. Remeber to edit my_robot.gazebo in order to stop publishing the odometry topic automatically by the robot controller.

  • Read base_footprint yaw angle in /tf.

Let me know if one of these works in case you implement them.

eborghi10 added a commit that referenced this issue May 1, 2018
@eborghi10
Copy link
Owner

Hey @jossichrist, I think I fixed the issue in this commit. Can you check that again, please?

Here are some images with the fix:

  • Gazebo simulation

default_gzclient_camera 1 -2018-05-01t20_09_23 019324

  • RViz simulator

rviz_screenshot_2018_05_01-20_08_58

@eborghi10 eborghi10 self-assigned this May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants