Support changing video streams when reporting targets #195
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Ian Chen [email protected]
Fixes #193
Depends on gazebosim/gz-rendering#690
Currently target reporting only works with video stream from one camera. This PR adds support so that target report can be done from different cameras, e.g. verify vessel report from slot0 of quad_1 and then verify small object report from slot3 of quad_2.
To test:
Apply the following patch make the quadrotor static and move Vessel B closer to coast and make it static so it's easier to test target reporting:
patch
build the workspace for changes to take place
Launch the coast environment
Spawn 2 quadrotors. One with front facing camera (slot0) and one with downward facing camera (slot3)
Position
quadrotor_1
to look at vessel:In another terminal, start stream from
quadrotor_1
usingimage_transport
Report vessel
Check
tmp/ign/mbzirc/logs/events.yml
and you should seevessel_id_success
eventKill the stream (
image_transport
process) forquadrotor_1
by pressing Ctrl+C.Move
quadrotor_2
above small target objectStart the stream from
quadrotor_2
Report small object
Verify that in
tmp/ign/mbzirc/logs/events.yml
, you see asmall_object_id_success
event