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

[ros2] Fix test for diff drive #951

Merged
merged 1 commit into from
Jul 9, 2019

Conversation

shiveshkhaitan
Copy link

The test should check for the linear velocity of the vehicle in the X direction wrt to the vehicle instead of linear velocity in Gazebo's X direction. This is how the odometry is also set.

float yaw = pose.Rot().Yaw();
odom_.twist.twist.linear.x = cosf(yaw) * linear.X() + sinf(yaw) * linear.Y();

@chapulina chapulina self-requested a review July 9, 2019 11:38
@chapulina chapulina added the ros2 label Jul 9, 2019
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me, let's try to run CI for it

@chapulina
Copy link
Contributor

@ros-pull-request-builder retest this please

@chapulina
Copy link
Contributor

let's try to run CI for it

I think we need this to get CI working for the dashing branch: ros/rosdistro#21722.

For now, I tested this locally and it works for me 👍

@chapulina chapulina merged commit 5e4a989 into ros-simulation:dashing Jul 9, 2019
@shiveshkhaitan shiveshkhaitan deleted the diff_drive branch July 9, 2019 12:40
shiveshkhaitan added a commit to shiveshkhaitan/gazebo_ros_pkgs that referenced this pull request Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants