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

Bug: Incorrect Assignment in PublishOdometryToROSOmni Function (scout_base/src/scout_messenger.cpp) #19

Open
ZilchME opened this issue Dec 12, 2023 · 0 comments

Comments

@ZilchME
Copy link

ZilchME commented Dec 12, 2023

There is a potential issue in the PublishOdometryToROSOmni function in the file scout_base/src/scout_messenger.cpp. Specifically, there may be an error in handling lateral velocity.

At line 354 of the file, the following line directly assigns the lateral velocity (lateral_speed_) to odom_msg.twist.twist.linear.y, instead of adding it to the twist section:

odom_msg.twist.twist.linear.y = 0.0;

It is recommended to correct it as follows:

odom_msg.twist.twist.linear.y = lateral_speed_;

I expect the value of linear.y to reflect the value of lateral_speed_, ensuring that the odometry message correctly contains lateral velocity information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant