Skip to content

Upgrade line test functionality#2509

Merged
yuvrajdhadwal merged 11 commits into
ros2from
upgrade_line_test_functionality
Mar 9, 2026
Merged

Upgrade line test functionality#2509
yuvrajdhadwal merged 11 commits into
ros2from
upgrade_line_test_functionality

Conversation

@yuvrajdhadwal

Copy link
Copy Markdown
Contributor

Description

Modifies Line Test so that now user can specify which points they want the robot to toggle between and which robot to test with.

yuvrajdhadwal and others added 2 commits March 2, 2026 01:11
automated style fixes

Co-authored-by: yuvrajdhadwal <yuvrajdhadwal@users.noreply.github.com>
@yuvrajdhadwal yuvrajdhadwal marked this pull request as ready for review March 2, 2026 06:15
@yuvrajdhadwal yuvrajdhadwal requested a review from sanatd33 March 2, 2026 06:15
@yuvrajdhadwal yuvrajdhadwal requested a review from Squid5678 March 2, 2026 06:16

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can remove if deprecated

@shourikb shourikb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just minor things

rj_geometry::Point end{msg->pt[1].x, msg->pt[1].y};
uint8_t r_id{msg->r_id};

if (start[0] != start_[0] || start[1] != start_[1] || end[0] != start_[0] ||

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

shouldn't this be end[0] != end_[0]?

automated style fixes

Co-authored-by: yuvrajdhadwal <yuvrajdhadwal@users.noreply.github.com>

@CameronLyon CameronLyon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good overall 👍

@rishiso rishiso left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

more to come after you add bounds checking

}

if (vertical_) {
if (robot_id_ == target_rid_) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: Change this to if (robot_id_ != target_rid_) continue;
There is so much indentation and it looks bad

…m/RoboJackets/robocup-software into upgrade_line_test_functionality

e enter a commit message to explain why this merge is necessary,
automated style fixes

Co-authored-by: yuvrajdhadwal <yuvrajdhadwal@users.noreply.github.com>
@yuvrajdhadwal yuvrajdhadwal requested a review from rishiso March 9, 2026 01:50

@rishiso rishiso left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@yuvrajdhadwal yuvrajdhadwal merged commit 8ae535e into ros2 Mar 9, 2026
2 checks passed
@yuvrajdhadwal yuvrajdhadwal deleted the upgrade_line_test_functionality branch March 9, 2026 03:20
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

Successfully merging this pull request may close these issues.

5 participants