自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

原创 695. 岛屿的最大面积

class Solution {public: int maxAreaOfIsland(vector<vector<int>>& grid) { int max_area=0,area=0; for(int i=0;i<grid.size();i++) { for(int j=0;j<grid[i].size();j++) { .

2021-09-07 00:56:21 77

原创 735.图像渲染

class Solution {public: vector<vector<int>> floodFill(vector<vector<int>>& image, int sr, int sc, int newColor) { if(newColor==image[sr][sc])return image; flood(image,sr,sc,newColor,image[sr][sc]);.

2021-09-07 00:54:38 80

原创 116.右侧节点

/*// Definition for a Node.class Node {public: int val; Node* left; Node* right; Node* next; Node() : val(0), left(NULL), right(NULL), next(NULL) {} Node(int _val) : val(_val), left(NULL), right(NULL), next(NULL) {} Node(.

2021-09-02 01:27:35 84

原创 189.旋转数组

class Solution {public: int GCD(int a,int b) { return a%b?GCD(b,a%b):b; } void rotate(vector<int>& nums, int k) { int numsSize=nums.size(); if(numsSize<=1||k==0) { return; .

2021-09-02 00:47:41 60

原创 110.平衡二叉树

/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} *.

2021-09-01 23:25:39 48

原创 23.合并K个升序链表

class Solution {public: ListNode* mergeKLists(vector<ListNode*>& lists) { int listsSize=lists.size(); //ListNode* head=nullptr; if(listsSize==0) //空vector ..

2021-08-23 02:05:09 142

原创 415.字符串相加

Given two non-negative integers, num1 and num2 represented as string, return the sum of num1 and num2 as a string.You must solve the problem without using any built-in library for handling large integers (such as BigInteger). You must also not convert the

2021-08-20 01:29:18 74

原创 238.除自身以外数组的乘积

Product of Array Except SelfGiven an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i].The product of any prefix or suffix of nums is guaranteed to fit in a 32-bit integer..

2021-08-20 01:25:53 93

原创 409.最长回文串

Given a string s which consists of lowercase or uppercase letters, return the length of the longest palindrome that can be built with those letters.Letters are case sensitive, for example, “Aa” is not considered a palindrome here.Example 1:Input: s = “a

2021-08-20 01:22:38 56

原创 290.单词规律

Given a pattern and a string s, find if s follows the same pattern.Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in s.Example 1:Input: pattern = “abba”, s = “dog cat cat dog”Output: true

2021-08-20 01:18:33 89 1

原创 实验三、四、五

定点转动很简单力控和敲铃这俩实验别想了,全是体力活力控机械臂助教给的参数那些都是奇奇怪怪的问题,重心、转动惯量xyz都设的不对,去问模型的问题助教也一脸懵逼。并没有小组仿真做出来,要么玄学调参侠,要么套皮速度控制。敲铃也是调参,不过确实有小组运动比较平滑,做的很棒。不过我们懒得管了,反正给分只看敲了多少次,直接暴力调参数就完了,基本都能拿满分。...

2021-08-19 22:55:10 87

原创 实验二 轨迹规划

没有给轨迹时间,自己随便给了个实验二 轨迹生成实验一、实验目的1、巩固机械臂轨迹的五次多项式插值方法2、掌握通过速度控制使机械臂按预期的轨迹去运动到指定位置二、实验内容1、对机械臂轨迹进行插值2、通过插值的多项式以速度控制的方式实现机械臂末端路径控制三、实验步骤1、给定四个机械臂坐标系中的空间路径点位姿:第一个点:[0.2289, 0, 0.454, 1.57, 0, 0](初始门位置)第二个点:[0.3, 0.25, 0.322, 1.57, -1.57, 0]第三个点:[0.3,

2021-05-26 15:43:15 633

原创 实验一 机械臂正逆运动学

实验一 机械臂正逆运动学一、实验目的1、巩固正逆运动学基础概念。2、了解正逆运动学在机械臂控制中的实际用途。二、实验内容1、机械臂模型DH参数的计算。2、机械臂正运动学的计算。3、机械臂逆运动学的计算。三、实验步骤1、正运动学实验验证,编写程序计算以下三组关节角度对应的末端位姿,并通过位置控制使机器人运动到相应位置,将实际末端位置与你的计算值比较,求出绝对误差。第一组:[0.927, -0.687, -0.396, 0, 1.083, 0.927]第二组:[0.322, -0.855,

2021-05-20 22:20:13 3808 4

原创 机器人学导论

一、预备知识向量外积的计算二、空间描述和变换描述:位置、姿态、坐标系旋转矩阵齐次变换矩阵右乘联体左乘基坐标系的关系欧拉角、固定角姿态的其他描述方法等效轴角欧拉参数与四元数grassmann积群三、操作臂运动学连杆参数DH参数连杆联体坐标系的变换矩阵驱动器空间、关节空间和笛卡尔空间末端位姿表示四、操作臂逆运动学可解性代数解法和几何解法解法超越方程代换三轴相交的PIEPER解法PIRPER解法PUMA560的另

2021-05-08 17:06:54 1627

原创 simulink matlab 二连杆 仿真

华东某高校自控作业主要解法有三1、simulink直接连接。可看哔哩哔哩网课初步了解simulink操作后连线,这是最简单的思路(普遍思路)。2、该方程组为非线性状态空间方程。相信布置作业时老师已经讲完了状态空间方程,可通过泰勒级数将三角函数项展开,从而使方程线性化,但这种方法误差未知,写这个的时候我们刚讲到线性化(可以尝试,当时只有我们组采取了这种思路)。3、simulink内有mechanic,可直接仿真(当时很多组也采取了这种方法,我感觉他们应该是互相抄orz)...

2021-03-28 21:39:24 3402 8

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除