控制机械臂的程序
应用介绍
单目控制机械臂的上位机程序,包括视觉识别和关节角反解。
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SingleCameraControlRobotArm", "SingleCameraControlRobotArm\SingleCameraControlRobotArm.vcxproj", "{7145AD21-96E5-4DE7-B3A3-AA7663728595}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7145AD21-96E5-4DE7-B3A3-AA7663728595}.Debug|x64.ActiveCfg = Debug|x64
{7145AD21-96E5-4DE7-B3A3-AA7663728595}.Debug|x64.Build.0 = Debug|x64
{7145AD21-96E5-4DE7-B3A3-AA7663728595}.Debug|x86.ActiveCfg = Debug|Win32
{7145AD21-96E5-4DE7-B3A3-AA7663728595}.Debug|x86.Build.0 = Debug|Win32
{7145AD21-96E5-4DE7-B3A3-AA7663728595}.Release|x64.ActiveCfg = Release|x64
{7145AD21-96E5-4DE7-B3A3-AA7663728595}.Release|x64.Build.0 = Release|x64
{7145AD21-96E5-4DE7-B3A3-AA7663728595}.Release|x86.ActiveCfg = Release|Win32
{7145AD21-96E5-4DE7-B3A3-AA7663728595}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
#include"Calibration.h"
using namespace std;
//初始化镜头矫正参数
//需要输入相机内参、畸变系数、照片尺寸、两个map(不知道干嘛用的)
void init_undistort(Mat &cameraMatrix, Mat &distCoeffs, const Size &imageSize, Mat &map1, Mat &map2)
{
cameraMatrix = Mat::eye(3, 3, CV_64F);
cameraMatrix.at<double>(0, 0) = 4.3391778255203135e+003;
cameraMatrix.at<double>(0, 1) = 0.;
cameraMatrix.at<double>(0, 2) = 1.2761969108831729e+003;
cameraMatrix.at<double>(1, 1) = 4.3278041842134598e+003;
cameraMatrix.at<double>(1, 2) = 7.0848935421128635e+002;
distCoeffs = Mat::zeros(5, 1, CV_64F);
distCoeffs.at<double>(0, 0) = -1.1829131587990460e-001;
distCoeffs.at<double>(1, 0) = 5.6532168750708756e-001;
distCoeffs.at<double>(2, 0) = 3.4379475924984858e-003;
distCoeffs.at<double>(3, 0) = 9.8004771755982791e-004;
distCoeffs.at<double>(4, 0) = -1.1442673176140812e+000;
//函数具体介绍
initUndistortRectifyMap(cameraMatrix, distCoeffs, Mat(),
getOptimalNewCameraMatrix(cameraMatrix, distCoeffs, imageSize, 1, imageSize, 0),
imageSize, CV_16SC2, map1, map2);
}
想了解详情请下载附件。
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: www_apollocode_net@163.com 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 控制机械臂的程序
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
Calibration.cpp | 0.65 KB | 2018-08-30 |
Calibration.h | 0.20 KB | 2018-08-30 |
Camera.cpp | 0.93 KB | 2018-08-30 |
Camera.h | 0.39 KB | 2018-08-30 |
EyeToHand.cpp | 0.37 KB | 2018-08-30 |
EyeToHand.h | 0.14 KB | 2018-08-30 |
GetImage.cpp | 3.00 KB | 2018-08-30 |
GetImage.h | 0.59 KB | 2018-08-30 |
HL.xml | 0.20 KB | 2018-08-30 |
HR.xml | 0.25 KB | 2018-08-30 |
AnalogChannelItem.h | 1.13 KB | 2018-08-30 |
AviSink.h | 0.83 KB | 2018-08-30 |
Codec.h | 1.80 KB | 2018-08-30 |
DeBayerTransform.h | 0.76 KB | 2018-08-30 |
dshow_header.h | 2.03 KB | 2018-08-30 |
dstring.h | 0.96 KB | 2018-08-30 |
dvector.h | 1.36 KB | 2018-08-30 |
Error.h | 1.08 KB | 2018-08-30 |
filterdll.h | 0.75 KB | 2018-08-30 |
filterfactory.h | 0.96 KB | 2018-08-30 |
FilterInfoObject.h | 2.07 KB | 2018-08-30 |
filterloader.h | 0.99 KB | 2018-08-30 |
FrameFilter.h | 3.59 KB | 2018-08-30 |
FrameFilterBase.h | 3.41 KB | 2018-08-30 |
FrameFilterImpl.h | 2.67 KB | 2018-08-30 |
FrameGrabberSink.h | 1.30 KB | 2018-08-30 |
FrameHandlerSink.h | 3.32 KB | 2018-08-30 |
FrameType.h | 3.93 KB | 2018-08-30 |
Grabber.h | 10.36 KB | 2018-08-30 |
GrabberListener.h | 1.02 KB | 2018-08-30 |
发表评论 取消回复