摘要: #include <iostream>using namespace std;class Node{ public: Node(int m_tp,int c_tp,int b_tp,int deep_tp,int cost_tp,Node* p); void set_m(int m_tp){m=m_ 阅读全文
posted @ 2016-02-29 11:06 ustczd 阅读(758) 评论(0) 推荐(0) 编辑
摘要: a1~a6代表绕z轴的旋转角,b1~b6分别代表沿z轴的平移量,c1~c6分别代表沿x轴的平移量,d1~d6分别代表沿x轴的旋转以上即为D——H参数 syms a1 b1 c1 d1 Trz Tz Tx Trx A1;Trz = sym('[cos(a1),-sin(a1),0,0;sin(a1)... 阅读全文
posted @ 2015-12-04 15:28 ustczd 阅读(1547) 评论(0) 推荐(0) 编辑
摘要: /*这是一个实现c++智能指针的程序。Point类主要是用于测试智能指针,可以用其他的任何类型代替。智能指针的实现主要靠c++模板技术实现,使得它可以适用于各种不同的类型。*/#include "std_lib_facilities.h"using namespace std;class Point... 阅读全文
posted @ 2015-12-02 15:07 ustczd 阅读(214) 评论(0) 推荐(0) 编辑
摘要: #include "std_lib_facilities.h" using namespace std;class Complex{ private: double real; double imag; public: Complex(){real=0;imag=1;} Complex(doubl... 阅读全文
posted @ 2015-11-30 21:08 ustczd 阅读(1729) 评论(0) 推荐(0) 编辑
摘要: #include "std_lib_facilities.h"using namespace std;class Point//used for test{ public: Point(double xval,double yval):x(xval),y(yval) { } void set_x(... 阅读全文
posted @ 2015-11-29 10:45 ustczd 阅读(339) 评论(0) 推荐(0) 编辑
摘要: //The kinematics.yaml file 运动学参数文件//该文件是由MoveIt! Setup Assistant生成的记录初始组态的。right_arm: kinematics_solver: pr2_arm_kinematics/PR2ArmKinematicsPlugin kin... 阅读全文
posted @ 2015-11-02 15:14 ustczd 阅读(1348) 评论(0) 推荐(0) 编辑
摘要: //使用moveit需要的头文件#include #include #include #include #include #include #include #include #include //Move Group 界面的建立:moveit::planning_interface::MoveGr... 阅读全文
posted @ 2015-10-28 21:03 ustczd 阅读(5070) 评论(1) 推荐(0) 编辑
摘要: #include "ros/ros.h" //ros常用头文件ros::init(argc,argv,"move_group_interface_tutorial");//前两个参数确定,第三个参数是节点的名字,实现ros程序的参数与命令行输入的匹配ros::NodeHandle n;//NodeH... 阅读全文
posted @ 2015-10-28 21:01 ustczd 阅读(2567) 评论(0) 推荐(1) 编辑
摘要: 在qtcreator中执行如下语句double d=0;cout > d;可能会出现在application output窗口中打印出enter:,但无法进行输入的情况。可以采用以下的办法解决:1.在qtcreator左侧窗口中找到Projects->run settings->run 保证勾选了... 阅读全文
posted @ 2015-10-15 11:52 ustczd 阅读(1670) 评论(0) 推荐(0) 编辑
摘要: 7.字符串和向量 a.字符串是一种数组类型 %1.c字符串值和c字符串变量 假定字符串是"hello",则需要一个6个引索变量的字符数组,最后一个位置用来存放'\0'。'\0'为一个空字符,用于表征字符串的结束。 注意:以下两个声明方式并不一致: char short_string[] = 'abc... 阅读全文
posted @ 2015-09-07 10:42 ustczd 阅读(1132) 评论(0) 推荐(0) 编辑