会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ustczd
博客园
首页
新随笔
联系
订阅
管理
2016年2月
c++ 解决人工智能mc(传教士野人)问题
摘要: #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
阅读(788)
评论(0)
推荐(0)
2015年12月
matlab符号计算实现六自由度机器人运动学正解
摘要: 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
阅读(1643)
评论(0)
推荐(0)
c++实现智能指针(加注版,适合对智能指针有了解的朋友)
摘要: /*这是一个实现c++智能指针的程序。Point类主要是用于测试智能指针,可以用其他的任何类型代替。智能指针的实现主要靠c++模板技术实现,使得它可以适用于各种不同的类型。*/#include "std_lib_facilities.h"using namespace std;class Point...
阅读全文
posted @ 2015-12-02 15:07 ustczd
阅读(222)
评论(0)
推荐(0)
2015年11月
C++ Complex复数类的实现
摘要: #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
阅读(1751)
评论(0)
推荐(0)
利用模板实现c++智能指针
摘要: #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
阅读(341)
评论(0)
推荐(0)
movit 相关函数(二)
摘要: //The kinematics.yaml file 运动学参数文件//该文件是由MoveIt! Setup Assistant生成的记录初始组态的。right_arm: kinematics_solver: pr2_arm_kinematics/PR2ArmKinematicsPlugin kin...
阅读全文
posted @ 2015-11-02 15:14 ustczd
阅读(1438)
评论(0)
推荐(0)
2015年10月
moveit相关函数解释
摘要: //使用moveit需要的头文件#include #include #include #include #include #include #include #include #include //Move Group 界面的建立:moveit::planning_interface::MoveGr...
阅读全文
posted @ 2015-10-28 21:03 ustczd
阅读(5186)
评论(1)
推荐(0)
ros常用函数(1)
摘要: #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
阅读(2640)
评论(0)
推荐(1)
Qtcreator中cin函数无法在application output中进行输入的问题的解决
摘要: 在qtcreator中执行如下语句double d=0;cout > d;可能会出现在application output窗口中打印出enter:,但无法进行输入的情况。可以采用以下的办法解决:1.在qtcreator左侧窗口中找到Projects->run settings->run 保证勾选了...
阅读全文
posted @ 2015-10-15 11:52 ustczd
阅读(1755)
评论(0)
推荐(0)
2015年9月
c++速成,适合有c基础的朋友(3)
摘要: 7.字符串和向量 a.字符串是一种数组类型 %1.c字符串值和c字符串变量 假定字符串是"hello",则需要一个6个引索变量的字符数组,最后一个位置用来存放'\0'。'\0'为一个空字符,用于表征字符串的结束。 注意:以下两个声明方式并不一致: char short_string[] = 'abc...
阅读全文
posted @ 2015-09-07 10:42 ustczd
阅读(1171)
评论(0)
推荐(0)
下一页
公告