Skip to content

Mirror the target control of ObjectNavFragment if front facing camera is used#386

Merged
sparsh3dwe merged 5 commits into
ob-f:masterfrom
yijunwu:yijunwu/mirror_control_for_front_facing_camera
Dec 28, 2023
Merged

Mirror the target control of ObjectNavFragment if front facing camera is used#386
sparsh3dwe merged 5 commits into
ob-f:masterfrom
yijunwu:yijunwu/mirror_control_for_front_facing_camera

Conversation

@yijunwu

@yijunwu yijunwu commented Dec 6, 2023

Copy link
Copy Markdown
Contributor

When front facing camera is used, the target control of ObjectNavFragment should be mirrored otherwise the bot can't follow the target object. See the issue 385 for detail

@thias15

thias15 commented Dec 12, 2023

Copy link
Copy Markdown
Collaborator

The convention for the front camera varies across phones. How about adding an icon to mirror controls next to the camera flip icon.

@yijunwu

yijunwu commented Dec 14, 2023

Copy link
Copy Markdown
Contributor Author

OK, I haven't tried phones other than Samsung's. Maybe a better solution would be to detect the convention for the phone automatically, and set default value accordingly, in addition to adding icon to mirror control? Not sure if it's detectable. Before figuring out that, adding icon to mirror control can be a basic solution. I'll add some more commits soon

…con to mirror controls next to the camera flip icon, instead of always mirroring control when using front camera.
@yijunwu

yijunwu commented Dec 16, 2023

Copy link
Copy Markdown
Contributor Author

I've added more commits. It should be ok now.
image
image

@yijunwu

yijunwu commented Dec 16, 2023

Copy link
Copy Markdown
Contributor Author

I adjusted the layout and appearance of icons, now it looks like this:
6830d259c0e1cca88ef2e2368520496
fa1deaea6ead352cafed02663e759dd

@desy0305 desy0305 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ok excellent update

@sparsh3dwe sparsh3dwe merged commit 4be9151 into ob-f:master Dec 28, 2023
@hardikgarg02

Copy link
Copy Markdown
Contributor

I have fixed the UI for the fragment. Could you review and replace below file named fragment_object_nav.xml in the path robot/src/main/res/layout-land directory.
fragment_object_nav.xml.zip

And also replace below file named fragment_object_nav.xml in the path robot/src/main/res/layout directory.
fragment_object_nav.xml.zip

lacykaltgr pushed a commit to satinavrobotics/SatiBot that referenced this pull request Jun 1, 2025
… is used (ob-f#386)

- Mirror the target control of ObjectNavFragment if front facing camera is used
- The convention for the front camera varies across phones. Adding an icon to mirror controls next to the camera flip icon, instead of always mirroring control when using front camera.
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