2168_vision_example's People
Forkers
neatteam1943 ssaxena00 c3m20 umer936 lockeanddemosthenes jeffreyq calebots sichitong mclemons972168_vision_example's Issues
a few things
For some reason the program doesn't recognize the following commands:
cout
endl
setw
imshow
And it has a error with vcap.open(videoStreamAddress) saying:
Invalid arguments '
Candidates are:
bool open(const ? &)
bool open(int, int, int, double)
'
Sorry if I'm missing something obvious
Clarification of X11 instructions
Awesome repository!
We (3618 - Petoskey Paladins) have been able to follow all the instructions and can run the vision example on the roboRio.
Our stumbling block is X11 forwarding, as described on http://controls.team2168.org/
We've added the line
src/gz angstrom-base http://feeds.angstrom-distribution.org/feeds/next/ipk/eglibc/armv7a/base/
to the new /etc/opkg/angstrom-base-feed.conf
file, ran opkg update
, but when we invoked opkg install xauth
we're told "Unknown package 'xauth'."
opkg search
yields no 'auth' packages of any kind.
Any pointers on what might have been overlooked?
We're just trying to get a view into the processing to see the intermediate processing.
Thanks
Conflict with #include wpilib.h?
Hello and awesome vision example.
I'm able to compile ftp and run your code on the roborio fine.
Now I'm looking at taking the example Arcade Drive and adding in the include/lib references and am having a issue.
First, I am able to build and run the Arcade Drive example,
I've added to it:
#include <opencv2/opencv.hpp>
using namespace cv;
I added _Includes\OpenCV\2.4.10 to the includes under paths and symbols in c++ general
I also added _Libraries\softFP\lib_OpenCV and lib_cpp to the library paths and
I also added the opencv_highgui,opencv_core,opencv_imgproc to the libraries list
When I compile, it appears there is a conflict between wpilib.h and opencv.hpp I get tons of redeclaration errors... Here is a sample:
Note there are lots of these, I've only added 4...Below them is the full code, Its not long.
Thanks for any help!
Eric
08:06:48 **** Incremental Build of configuration Debug for project Arcade Drive ****
Info: Internal Builder is used for build
arm-frc-linux-gnueabi-g++ -std=c++1y "-IC:\Users\user/wpilib/cpp/current/include" "-IC:\Users\user\Desktop\FRC2017Stuff\workspace\Arcade Drive\src" "-IC:\Users\user/wpilib/user/cpp/include" "-IC:\Users\user\Desktop\FRC2017Stuff\2168_Vision_Example\_Includes\OpenCV\2.4.10" -O0 -Og -g3 -Wall -c -fmessage-length=0 -o "src\Robot.o" "..\src\Robot.cpp"
In file included from C:\Users\user\Desktop\FRC2017Stuff\2168_Vision_Example_Includes\OpenCV\2.4.10/opencv2/opencv.hpp:59:0,
from ..\src\Robot.cpp:4:
C:\Users\user\Desktop\FRC2017Stuff\2168_Vision_Example_Includes\OpenCV\2.4.10/opencv2/contrib/contrib.hpp:852:22: error: redefinition of 'class cv::LDA'
class CV_EXPORTS LDA
^
In file included from C:\Users\user/wpilib/cpp/current/include/opencv2/core/types_c.h:101:0,
from C:\Users\user/wpilib/cpp/current/include/opencv2/core/core_c.h:48,
from C:\Users\user\Desktop\FRC2017Stuff\2168_Vision_Example_Includes\OpenCV\2.4.10/opencv2/opencv.hpp:46,
from ..\src\Robot.cpp:4:
C:\Users\user/wpilib/cpp/current/include/opencv2/core.hpp:2422:18: error: previous definition of 'class cv::LDA'
class CV_EXPORTS LDA
^
In file included from C:\Users\user\Desktop\FRC2017Stuff\2168_Vision_Example_Includes\OpenCV\2.4.10/opencv2/opencv.hpp:59:0,
from ..\src\Robot.cpp:4:
C:\Users\user\Desktop\FRC2017Stuff\2168_Vision_Example_Includes\OpenCV\2.4.10/opencv2/contrib/contrib.hpp:968:27: error: redeclaration of 'COLORMAP_AUTUMN'
COLORMAP_AUTUMN = 0,
^
In file included from C:\Users\user/wpilib/cpp/current/include/opencv2/imgproc/imgproc.hpp:48:0,
from C:\Users\user\Desktop\FRC2017Stuff\2168_Vision_Example_Includes\OpenCV\2.4.10/opencv2/opencv.hpp:50,
from ..\src\Robot.cpp:4:
C:\Users\user/wpilib/cpp/current/include/opencv2/imgproc.hpp:3782:5: note: previous declaration 'cv::ColormapTypes COLORMAP_AUTUMN'
COLORMAP_AUTUMN = 0, //!<
^
In file included from C:\Users\user\Desktop\FRC2017Stuff\2168_Vision_Example_Includes\OpenCV\2.4.10/opencv2/opencv.hpp:59:0,
from ..\src\Robot.cpp:4:
FULL Program :
using namespace std;
#include <stdio.h>
#include <stdlib.h>
#include <opencv2/opencv.hpp>
#include
#include
#include
#include
#include
#include <unistd.h>
#include <pthread.h>
using namespace cv;
#include <WPILib.h>
class Robot: public frc::SampleRobot {
frc::RobotDrive myRobot { 0, 1 }; // robot drive system
frc::Joystick stick { 0 }; // only joystick
public:
Robot() {
myRobot.SetExpiration(0.1);
}
/**
* Runs the motors with arcade steering.
*/
void OperatorControl()
{
while (IsOperatorControl() && IsEnabled()) {
double x= stick.GetRawAxis(0);
myRobot.ArcadeDrive(stick); // drive with arcade style (use right stick)
frc::Wait(0.005); // wait for a motor update time
}
}
};
START_ROBOT_CLASS(Robot)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.