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

Prepare for Red Ball Demo Test #34

Merged
merged 1 commit into from
Jul 14, 2021
Merged

Prepare for Red Ball Demo Test #34

merged 1 commit into from
Jul 14, 2021

Conversation

pattacini
Copy link
Member

@pattacini pattacini commented Jul 13, 2021

This PR proposes changes in order to enable the use of Gazebo for the red-ball test as per #32 (review).

A couple of insights on this:

  • The template model for the red-ball in Gazebo was actually not tailored for the radius of the ball. I've therefore regenerated it by means of Python script to replace MATLAB script #18.
  • The start command has been extended in order to let the simulated robot look (optionally) at a specified location; I do employ this option to make the robot look down during the red-ball test, otherwise the ball will be off the camera.

These changes have been tested successfully ✔️

@@ -824,7 +825,7 @@ class managerThread : public PeriodicThread
}
}
else if (((state==STATE_IDLE) || (state==STATE_REACH)) &&
((Time::now()-idleTimer)>idleTmo) && !wentHome)
((Time::now()-idleTimer)>idleTmo) && !wentHome && !simulation)
Copy link
Member Author

Choose a reason for hiding this comment

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

This addition is because, when we're in simulation and we ask the robot to look down at startup, the robot needs to keep looking down instead of going home.

@@ -57,7 +57,7 @@ cameraGroup CAMERA_CALIBRATION_LEFT
#trackedObjectType [sphere|parallelogram]
trackedObjectType sphere
trackedObjectColorTemplate models/red_ball_gazebo.bmp
trackedObjectShapeTemplate models/initial_ball_points_36mm_20percent.csv
trackedObjectShapeTemplate models/red_ball_gazebo_model.csv
Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, the red ball in Gazebo has a radius of 25 mm.

@pattacini pattacini force-pushed the feat/redballtest-gazebo branch from 49db65e to 966287c Compare July 14, 2021 05:58
Copy link

@vvasco vvasco left a comment

Choose a reason for hiding this comment

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

LGTM

@Nicogene Nicogene merged commit 822475b into master Jul 14, 2021
@Nicogene Nicogene deleted the feat/redballtest-gazebo branch July 14, 2021 07:52
@Nicogene
Copy link
Member

Merged, thanks!

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.

3 participants