Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

[ros2] Fix test for diff drive#951

Merged
chapulina merged 1 commit intoros-simulation:dashingfrom
shiveshkhaitan:diff_drive
Jul 9, 2019
Merged

[ros2] Fix test for diff drive#951
chapulina merged 1 commit intoros-simulation:dashingfrom
shiveshkhaitan:diff_drive

Conversation

@shiveshkhaitan
Copy link
Copy Markdown

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
Copy Markdown
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

Comment thread gazebo_plugins/test/test_gazebo_ros_diff_drive.cpp
@chapulina
Copy link
Copy Markdown
Contributor

@ros-pull-request-builder retest this please

@chapulina
Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants