-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
@@ -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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
49db65e
to
966287c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Merged, thanks! |
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:
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 ✔️