Go to Post Teach them to fish by catching the first fish for them. (Give them the answer, but also give them how you came to that conclusion) - David V [more]
Home
Go Back   Chief Delphi > Search Forums
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

Showing results 1 to 25 of 35
Search took 0.00 seconds.
search: Posts Made By: SamCarlberg
Forum: Programming 12-29-2016, 06:01 PM
Replies: 9
Views: 885
Posted By SamCarlberg
Re: Vision co-processor Raspberry Pi (Raspbian Jessie/OpenCV)

Take a look here (https://github.com/WPIRoboticsProjects/GRIP-code-generation) for some samples. I've built OpenCV python bindings for the pi 3, and there's some examples for python code to get...
Forum: General Forum 12-01-2016, 11:45 PM
Replies: 8
Views: 957
Posted By SamCarlberg
GRIP 1.5 is now available!

If you haven't heard of it, GRIP is an application aimed at making it easy and straightforward to use computer vision. If you have a webcam, you can use computer vision in FRC. No programming...
Forum: General Forum 11-29-2016, 12:32 AM
Replies: 14
Views: 1,893
Posted By SamCarlberg
Re: MAR Vision Day

About the raw OpenCV stuff vs. GRIP (starts around 17:00): the next release has code generation for the OpenCV 3.1.0 APIs for Java, C++, and Python 3. You can set up the pipeline and tune parameters...
Forum: Programming 11-21-2016, 06:46 PM
Replies: 18
Views: 1,294
Posted By SamCarlberg
Re: GRIP Deploy Not Working

That's bizarre. I'll see if I can reproduce this tonight. If not, you can use 1.5 and generate OpenCV code to run on the Pi without needing to deploy GRIP
Forum: Programming 11-21-2016, 02:02 PM
Replies: 18
Views: 1,294
Posted By SamCarlberg
Re: GRIP Deploy Not Working

It's the entire output you got when you tried to run it from the command line, not just that one line. There should be a lot of lines that look like

"at edu.wpi.grip....(123)"
Forum: Programming 11-21-2016, 01:17 PM
Replies: 18
Views: 1,294
Posted By SamCarlberg
Re: GRIP Deploy Not Working

Yeah, the wiki could be better.

Can you post the full stacktrace?
Forum: Programming 11-21-2016, 10:35 AM
Replies: 18
Views: 1,294
Posted By SamCarlberg
Re: GRIP Deploy Not Working

You need to set the "LD_LIBRARY_PATH" environment variable to have the directory you put the ntcore libraries. You can do this either by the method on the wiki:


$ env...
Forum: Programming 11-17-2016, 10:08 AM
Replies: 8
Views: 566
Posted By SamCarlberg
Re: Grip Image processing

I'd do what Andrew recommended. You can iterate through the arrays in networktables and keep track of the index of the contour with the largest area.
Forum: Programming 11-16-2016, 11:50 PM
Replies: 4
Views: 658
Posted By SamCarlberg
Re: FRC 2170 Stronghold code release

Looks like it was a TK1 or TX1. Either would be faster than a Pi, even without GPU support.
Forum: Programming 05-01-2016, 01:34 PM
Replies: 14
Views: 1,252
Posted By SamCarlberg
Re: Make the RoboRIO serve HTML like the NI WebDash

It would be it's own application running on the RoboRIO. You can't change the NI WebDash.
Forum: Programming 05-01-2016, 12:56 PM
Replies: 14
Views: 1,252
Posted By SamCarlberg
Re: Make the RoboRIO serve HTML like the NI WebDash

You'd have to roll your own HTTP server and connect it to one of the ports that the FMS keeps open. Looks like ports 5800-5810 are the best ones to use according to the FMS whitepaper...
Forum: General Forum 04-16-2016, 02:56 PM
Replies: 83
Views: 27,358
Posted By SamCarlberg
Re: 2016 World High Score

1519, 230, and 176 just got 257 in QF 4.2 :ahh:
Forum: General Forum 04-16-2016, 02:06 PM
Replies: 83
Views: 27,358
Posted By SamCarlberg
Re: 2016 World High Score

125, 195, and 2168 just got 225 points (no fouls) in QF 3.1 at the New England district championship

1519, 230, and 176 just got 225 (including 10 penalty points) in QF 4.1
Forum: Programming 02-27-2016, 10:40 AM
Replies: 7
Views: 1,705
Posted By SamCarlberg
Re: Computer Vision Processing - Team 5450

What you need to know to calculate distance from the goal:


Height of the camera image
Vertical FOV
Y-distance from the center of the image to some known point on the goal (such as the center of...
Forum: Programming 02-26-2016, 10:41 PM
Replies: 7
Views: 1,705
Posted By SamCarlberg
Re: Computer Vision Processing - Team 5450

I think it would be more reliable to calculate distance based on the y position of the goal in the image rather than trying to use it's apparent width. It would be much more robust when the camera...
Forum: Java 02-26-2016, 07:29 PM
Replies: 1
Views: 382
Posted By SamCarlberg
Re: robotbuilder overwrites parameters on commands that have parameters

RobotBuilder will create a button on the SmartDashboard for every preset for every command. So if you have a preset called 'Turn 90' that sets the parameter to 90, it will generate a button for that....
Forum: Programming 02-23-2016, 05:54 PM
Replies: 25
Views: 1,870
Posted By SamCarlberg
Re: Thoughts On Comments In Team Code

Javadoc explains what the method does and anything that's needed for it to work properly. It doesn't explain reasoning behind the logic inside, which is very unhelpful when trying to debug. It...
Forum: Java 02-22-2016, 08:27 PM
Replies: 4
Views: 559
Posted By SamCarlberg
Re: RobotBuilder overwriting Java Commands

Ah. Time to change a regex (or three)



You can make a custom component for any section. Check the documentation on extensions...
Forum: Java 02-19-2016, 12:57 PM
Replies: 4
Views: 559
Posted By SamCarlberg
Re: RobotBuilder overwriting Java Commands

This is intentional.

RobotBuilder sees that the type of the command is not what the program exported (i.e. you changed 'SomeCommand extends Command' to 'SomeCommand extends ParameterCommand') and...
Forum: Java 02-04-2016, 07:02 PM
Replies: 2
Views: 386
Posted By SamCarlberg
Re: Java Paramter Type

Quick recap on command parameters:

Parameters are there so you can have one command perform multiple actions (rather than one command per action).

For example: there's a mechanism on your robot to...
Forum: Java 01-27-2016, 09:41 PM
Replies: 8
Views: 882
Posted By SamCarlberg
Re: [Vision] Multithreading?

Something like this might work for you:



// Create a new Timer to schedule vision processing
Timer visionScheduler = new Timer("Vision Scheduler", true);

void doVisionProcessing() {
// Your...
Forum: Programming 01-21-2016, 08:54 PM
Replies: 4
Views: 820
Posted By SamCarlberg
Re: Robotbuilder Deleting and Rewriting Files (C++)

Submitted a fix at https://usfirst.collab.net/gerrit/#/c/1328/
Forum: Java 01-16-2016, 10:37 AM
Replies: 3
Views: 592
Posted By SamCarlberg
Re: RobotMap?

If you use RobotBuilder, you'll need to use RobotMap. If you don't use RobotBuilder, don't do it. It breaks encapsulation, which generally is a bad thing.
Forum: C/C++ 01-15-2016, 07:42 PM
Replies: 6
Views: 643
Posted By SamCarlberg
Re: RobotBuilder does not work

Can you be more specific? What files aren't being generated?
Forum: Java 01-14-2016, 11:19 PM
Replies: 2
Views: 430
Posted By SamCarlberg
Re: Setting Variable from SmartDashboard or Driver Station

If you enable test mode with the SmartDashboard open, you should see subsystems and their components in the LiveWindow (assuming you're using robotbuilder). Otherwise you can call...
Showing results 1 to 25 of 35

 
Forum Jump

All times are GMT -5. The time now is 07:20 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi