
机器人软件开发与算法
机器人的控制软件开发
优惠券已抵扣
余额抵扣
还需支付
¥59.90
¥99.00
购买须知?
本专栏为图文内容,最终完结不会低于15篇文章。
订阅专栏,享有专栏所有文章阅读权限。
本专栏为虚拟商品,基于网络商品和虚拟商品的性质和特征,专栏一经购买无正当理由不予退款,不支持升级,敬请谅解。
CC长城
既然选择远方,便只顾风雨兼程
展开
-
基于遗传算法的目标函数求解案例-笔记
通过遗传算法,在约束为[-2,2]下,求f(x)的最大值程序代码如下:%主程序clc;clear all;global BitLengthglobal boundsbeginglobal boundsendbounds=[-2 2];%一维自变量的取值范围precision=0.0001; %运算精度boundsbegin=bounds(:,1);boundsend=bounds(:,2);%计算如果满足求解精度至少需要多长的染色体BitLength=ceil(log原创 2021-05-02 14:07:27 · 2729 阅读 · 1 评论 -
基于SVM的故障模式识别
function chapter_GridSearchclear allclcformat compact;load shuju.matload shujulabel.matload categories % 画出测试数据的box可视化图figure;boxplot(shuju,'orientation','horizontal','labels',categories);title('gear fault数据的box可视化图','FontSize',12);xlabel('属性值'.原创 2021-04-30 22:49:31 · 5915 阅读 · 9 评论 -
信号提取方法-测试
%提取信号特征向量方法clear; seg_motion=[ 60:100:960;90:100:990];index_motion=[];for k=1:size(seg_motion,2) index_motion = [index_motion,seg_motion(1,k):seg_motion(2,k) ]; endseg_rest= seg_motion(:,1:end-1)+50;index_rest=[];.原创 2021-04-28 10:44:02 · 1700 阅读 · 0 评论 -
神经网络预测函数的根
假设已知X1={X1,X2,X3...},X2={X,1X2,X3...},X3={X1,X2,X3...},Y1={Y1,Y2,Y3...},Y2={Y11,Y22,Y33...}测量数据Y{x1,X11;x2,X22;x3,X33;}其中,Y1与X1~X3有关,Y2也与X1~X3有关,p=[X1;X2;X3]; %输入数据矩阵t=[Y1;Y2]; %目标数据矩阵%利用premnmx函数对数据进行归一化[pn,minp,maxp,tn,mint,maxt]...原创 2021-05-02 15:07:19 · 3141 阅读 · 7 评论 -
时间序列数据的样本熵
function SampEnVal = SampEn_old(data, m, r)%SAMPEN 计算时间序列data的样本熵% data为输入数据序列% m为初始分段,每段的数据长度% r为阈值% $Author: lskyp% $Date: 2010.6.20data = data(:)';N = length(data);% 分段计算距离for k = N - m:-1:1 xm(k, :) = data(k:k +.原创 2021-04-28 10:44:38 · 1368 阅读 · 0 评论 -
斐波那契等随机序列
1、斐波那契拟序列function fibonacci%(1-10维)k=23-37均匀性好,%(1-20维)k=33-37均匀性好,%(1维-60维)k=71-73均匀性好,73最好k=73;%斐波那契参数:33n=1000;%拟随机数个数s=60;%维数%产生斐波那契拟随机数系列for i=1:s-1 quad=fibonacci_qrn(i,n,k); x=quad'; quad=fibonacci_qrn(i+1原创 2021-04-29 10:29:53 · 2355 阅读 · 0 评论 -
5类拟随机序列
1.glc格雷码随机序列function Glcn=1000;for i=1:n x(i)=glc(i); enddisp(sprintf('%f ',x));%一维Glc拟随机数序列个数分布 figureplot(1:n,x,'.k','MarkerSize',10) xlabel('拟随机数个数');ylabel('拟随机数数值');%GLC拟随机数发生器,产生1个拟随机数function [Prand]=glc(i)x=0.0;..原创 2021-04-29 10:22:40 · 2147 阅读 · 0 评论 -
运动空间算法
workspace算法基于运动学和空间运动约束条件下,搜索得到运动空间clc;clear;con=pi/180;a=[180 180 180 180]; b=[120 120 120 120]; dmin12=140;dmax12=340;dmin34=140;dmax34=400;R1_min=60; R1_max=150;R2_min=60; R2_max=150; R3_min=50; R3_max=130; R4_min=50; R4_max=13原创 2021-04-28 17:08:05 · 1595 阅读 · 2 评论 -
inverse_algorithm
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Leadshine.SMC.IDE.Motion;using System.Threading;using System.Wi.原创 2021-04-28 10:43:31 · 302 阅读 · 0 评论 -
motion_algorithm
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Leadshine.SMC.IDE.Motion;using System.Threading;using System.Dr.原创 2021-04-28 10:42:36 · 256 阅读 · 0 评论 -
Kinematics-Forward_Class
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Leadshine.SMC.IDE.Motion;using System.Threading;using System.Dr.原创 2021-04-28 10:42:20 · 213 阅读 · 0 评论 -
Kinematics-Inverse_Class
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Leadshine.SMC.IDE.Motion;using System.Threading;using System.Dr.原创 2021-04-28 10:42:05 · 369 阅读 · 0 评论 -
机器人工作空间截面-数据测试
clc;clear;load position10.mat dv=10*10*10;h1=figure(2);Al=fliplr(sortrows(unique(fliplr(Al),'rows'))); %除去重复行,然后按第三列升序排序v=Al;TV=dv*length(Al)*10^-9; f = convhulln(v); %%v是你得到的离散点v(x,y,z) p...原创 2021-03-20 19:59:00 · 291 阅读 · 0 评论 -
robot of workspace algorithm
clc;clear;a=450e-3; b=340e-3; %约束条件dmin=0.8;dmax=1.5;U=120; R=120; i=1;for z=0.84:0.04:1.5; for theta=-45:1.5:45; for psi=-45:1.5:45; % 调用运动学...原创 2021-03-20 19:57:00 · 215 阅读 · 0 评论 -
轨迹规划-机器人
function varargout = guiji(varargin)gui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_Openi...原创 2021-04-25 09:34:37 · 640 阅读 · 0 评论 -
机器人的任务空间-测试
clc;clear allsyms a b c x y z rp rb l dmax dmin B Rrp=120;rb=230;l=300;dmin=230;dmax=500;B=60;R=60;i=1;for z=0:30:700;for x=-100:10:100; for y=-100:10:100; b=atan(x/z); ...原创 2021-04-25 09:34:53 · 425 阅读 · 0 评论 -
并联机器人正解-更新中
并联机器人正解clc;clear;con=pi/180;a=[150 150 150 150]; b=[90 90 90 90]; rang1 = cos(pi / 4); rang2 = 1; d1=180.33;...原创 2021-04-25 09:35:12 · 766 阅读 · 0 评论 -
运动包络面-机器人
包络面绘制程序function [X,Y,Z]=Enveloping_surface_rendering(x,y,z,a,b,A1)s=A1(:,3); b=[find(diff(s));length(s)];c=b-[0;b(1:end-1)];out=mat2cell(A1,c);ct=[]; rd=[]; for k=1:length(out)x=out{k}(...原创 2021-04-25 09:35:23 · 606 阅读 · 0 评论 -
机器人空间包络边界
function [T]=bianjie(a,b)x=a'; y=b';j=1;ind_maxx=find(x==max(x));ind_minx=find(x==min(x));for i=unique(x) %获得x的不同值 if i==min(x) y1=y(ind_minx); %与该 x 对应的y值 T01=...原创 2021-04-25 09:33:35 · 836 阅读 · 0 评论 -
登陆界面各功能设计-更新
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using Sy...原创 2021-04-25 09:33:25 · 641 阅读 · 0 评论 -
设备启动功能
初始化设置模块设计using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms...原创 2021-04-25 09:33:09 · 263 阅读 · 0 评论 -
伺服使能设计
private void skinButton1_Click_4(object sender, EventArgs e) { if (sevon) { open_SF.BaseColor = Color.Green; if (wether_link == 0)...原创 2021-04-25 09:32:57 · 408 阅读 · 0 评论 -
设备回零与停止功能设计
private void skinButton4_Click(object sender, EventArgs e) { if (wether_link == 0) { MessageBox.Show("请先打开设备!"); return; ...原创 2021-04-24 15:17:02 · 149 阅读 · 0 评论 -
尺度参数设置
public 系统界面() { InitializeComponent(); } public static int wether_link = 0; public static double a1, a2, a3; public static doub...原创 2021-04-24 15:16:53 · 629 阅读 · 0 评论 -
确认原点和单轴运动等功能-更新
int machine_origin = 0; private void confirm_zero_Click(object sender, EventArgs e) { if (wether_link == 0) { MessageBox.Show("请先打开设备!")...原创 2021-04-24 15:16:39 · 259 阅读 · 0 评论 -
混联机器人运动学测试
clc;clear;con=pi/180;rxx2=30;ryy2=10;a=57;b=120;rx=rxx2*con;ry=ryy2*con;xpw=6;ypw=8;zpw=-10;zw=265;et=10;aa=(zpw+zw-et*cos(ry)*cos(rx))*tan(ry)-a*sin(ry)*sin(rx);bb=-1*a*cos(rx)+b;cc=(zp...原创 2021-04-24 15:16:28 · 948 阅读 · 0 评论 -
位置、速度状态监测
private void timer2_Tick(object sender, EventArgs e) {if (wether_link == 0 || machine_origin == 0 || motion_1.Visible == false) return; for (int i = 0; i &...原创 2021-04-24 15:16:07 · 185 阅读 · 0 评论 -
运动插补状态监测
private void timer1_Tick(object sender, EventArgs e) {if (wether_processing == 1) { datecount = LTSMC.smc_conti_read_current_mark(CardNum, 0);//功能:读取连续插补缓...原创 2021-04-24 15:15:55 · 203 阅读 · 0 评论 -
多轴联动功能(更新中)
private void skinButton7_Click(object sender, EventArgs e) { if (machine_origin == 0) { MessageBox.Show("原点未校准!"); ret...原创 2021-04-24 15:15:40 · 286 阅读 · 0 评论 -
连接控制器功能
//连接控制器 public static int wether_link = 0; private void link_button_Click(object sender, EventArgs e) { if (wether_link == 0) { ...原创 2021-04-24 15:15:22 · 309 阅读 · 0 评论 -
启停伺服功能
private void open_SF_Click(object sender, EventArgs e) { SF = 1; if (wether_link == 0) { MessageBox.Show("请先打开设备!"); ...原创 2021-04-24 15:14:57 · 575 阅读 · 0 评论 -
回零、机构设定功能
public static double a1, a2, a3; //静平台半径 public static double b1, b2, b3; //动平台半径 public static double l1, l2, l3; //主动臂杆长 public static double q1, q2, q3; /...原创 2021-04-24 15:14:19 · 19787 阅读 · 0 评论 -
抓取分析测试
public void Pick_Down(double[] pointt1, double[] pointt2, double[] pointt3) { Trajectory_yuanhu.trajectory_s(pointt1, pointt2); int Row; Row = Traject...原创 2021-04-23 16:48:31 · 252 阅读 · 0 评论 -
寸动功能
//x+private void button5_Click(object sender, EventArgs e) { if (wether_link == 0) { MessageBox.Show("请先打开设备"); return; ...原创 2021-04-23 16:49:40 · 344 阅读 · 0 评论 -
运动监测
private void timer1_Tick(object sender, EventArgs e) { if (wether_link == 0 || teaching_Box.Visible == false) { return; } ...原创 2021-04-23 16:49:11 · 766 阅读 · 0 评论 -
演示功能
private void teaching_Click(object sender, EventArgs e) { if (machine_origin == 0) { MessageBox.Show("原点未校核!"); return; ...原创 2021-04-23 16:48:59 · 495 阅读 · 0 评论 -
定点移动与实验
int wq = 0; private void button18_Click(object sender, EventArgs e) { OpenFileDialog openDlg = new OpenFileDialog(); openDlg.Title = "打开数据文件"; ...原创 2021-04-23 16:48:46 · 658 阅读 · 0 评论 -
轨迹运动功能
int Row, Col; double[,] Date; int wether_loading_pointa = 0; public static double[] G_X; public static double[] G_Y; public static double[] G_Z; public static double[] posi_mode; ...原创 2021-04-23 16:47:50 · 19925 阅读 · 0 评论 -
运动类申明与实现
#ifndef KINEMATICS_H#define KINEMATICS_H#include<cmath>#include <QSettings>#include<QDebug>class kinematics{public: kinematics(double z0); //config QSetti...原创 2021-04-23 16:47:01 · 242 阅读 · 0 评论 -
数据读取类申明与实现
#ifndef READPLCDATA_H#define READPLCDATA_H#include<QDebug>#include "stdafx.h"class ReadPlcData{public: ReadPlcData(AmsAddr* pAddr); ~ReadPlcData(); static doubl...原创 2021-04-23 16:43:41 · 306 阅读 · 0 评论