代码搜索:机器人
找到约 783 项符合「机器人」的源代码
代码结果 783
www.eeworm.com/read/214111/15112997
cpp avoidwall.cpp
#include
/**
* 这是一个不会撞墙的机器人,演示了如何用迭代的方法控制机器人的移动
* @author xiemin
*/
class AvoidWall : public SimpleRobot
{
private:
//计算目标点时采用的搜索半径
static const double
www.eeworm.com/read/214111/15113007
cpp worm.cpp
#include
/**
* 这个类对应一个机器人,根据需要实现相应的Action处理函数,
* 就可以订制自己的机器人。
*/
class Worm: public SimpleRobot{
private:
const int MAX_SPARROWS = 100; /*最多对付100个麻雀*/
/*
www.eeworm.com/read/27950/868361
dat bookinfo.dat
[General Information]
书名=机器人控制电子学
作者=
页数=209
SS号=11273583
出版日期=
www.eeworm.com/read/214111/15113013
cpp figure8.cpp
#include
#define MOVE_VELOCITY 5
#define TURN_VELOCITY Math::toRadians(3)
/**
* 这个类对应一个机器人,根据需要实现相应的Action处理函数,
* 就可以订制自己的机器人。
*/
class Figure8 : public Simpl
www.eeworm.com/read/214111/15113025
cpp walls.cpp
#include
/**
* 这是一个绕墙走的机器人
* @author xiemin
*/
class Walls : public SimpleRobot
{
private:
/*
* 前进的方向。如果机器人当前的方向不在这个方向上,
* 则先停止运动,转动车身到这个方向上来
www.eeworm.com/read/321662/13401173
c firecircle.c
/**
* 这个例子<mark>机器人</mark>演示了如何打击作圆周运动的<mark>机器人</mark>。
* 这个<mark>机器人</mark>用的迭代算法与FireLine类似,不过它记录了对手上个单位时间的方向,
* 然后利用这个方向与对手当前的方向作比较,推算出对手每个单位时间的转动度数,
* 并以此来计算对手下个单位时间将出现的位置。
* @author xiemin
*/
#include ...
www.eeworm.com/read/419688/2074011
cpp robotmathmaticalmodel.cpp
//#include "StdAfx.h"
#include "RobotMathmaticalModel.h"
CRobotMathmaticalModel::CRobotMathmaticalModel(void)
{
}
CRobotMathmaticalModel::~CRobotMathmaticalModel(void)
{
}
// 速度运动模型,用机器人
www.eeworm.com/read/214111/15113041
cpp collection.cpp
#include
/**
* 这个类对应一个机器人,根据需要实现相应的Action处理函数,
* 就可以订制自己的机器人。
*/
class Collection : public SimpleRobot
{
private:
//存储自己的速度值(最多只保存100个数)
double velocit
www.eeworm.com/read/310473/13650538