Announcement

Collapse

Technology Forum Has Moved!

The FIRST Tech Challenge Technology forum has moved to a new location! Please take a look at our forum blog for links and instructions on how to access the new forum.

https://firsttechchallenge.blogspot....orum-blog.html

Note that volunteers (except for FTA/WTA/CSA will still access their role specific forum through this site. The blog also outlines how to access the volunteer forums.
See more
See less

Changing Robot Controller App

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing Robot Controller App

    Is it legal to change the robot controller app layout and activity to display the phone's camera view?

  • #2
    Originally posted by FTCteam7026 View Post
    Is it legal to change the robot controller app layout and activity to display the phone's camera view?
    Yes. Only the Driver Station App must be used AS-IS.

    Note, The Vuforia library does just what you asked about... it displays the camera image with overlay.

    I would be cautious to leave as much as the existing display data as possible intact so the FTA's can still diagnose any comms issues.

    Comment


    • #3
      Originally posted by FTCteam7026 View Post
      Is it legal to change the robot controller app layout and activity to display the phone's camera view?
      The RC activity layout already reserved a space for camera view. Why don't you just use that instead of defining your own?
      Code:
            <LinearLayout
                android:id="@+id/cameraMonitorViewId"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical"
                />

      Comment


      • #4
        I want to use vanilla opencv for a certain opmode and need a javacameraview. I also don't want to interfere with vuforias use of the cameraview

        Comment


        • #5
          Great, thank you!

          Comment


          • #6
            Originally posted by FTCteam7026 View Post
            I want to use vanilla opencv for a certain opmode and need a javacameraview. I also don't want to interfere with vuforias use of the cameraview
            Do you want both opencv's AND vuforia's view? If only the former, then you can instruct Vuforia not to render anything.

            Comment


            • #7
              Id love to see some examples of how to display something from OpenCV. I was playing with that a few weeks ago - using cameraMonitorViewId and telling vuforia to not display. However my Java GUI knowledge is very limited and what I got was displaying a distorted partial image and then it would cause the app to crash after a few seconds.

              Comment


              • #8
                I haven't tried displaying OpenCV mat on the cameraMonitorView yet but if you post what you have so far, we may be able to figure that out.

                Comment

                Working...
                X