📄 robotmathmaticalmodel.cpp
字号:
//#include "StdAfx.h"
#include "RobotMathmaticalModel.h"
CRobotMathmaticalModel::CRobotMathmaticalModel(void)
{
}
CRobotMathmaticalModel::~CRobotMathmaticalModel(void)
{
}
// 速度运动模型,用机器人的线速度、角速度计算左右轮速
bool CRobotMathmaticalModel::VelocityMotionModel(float LinearVel, float AngularVel,float RobotWidth)
{
m_dLeftSpeed=LinearVel+RobotWidth*AngularVel;//5/2=2.5
m_dRightSpeed=LinearVel-RobotWidth*AngularVel;
return SafeLRSpeedLimit(m_dLeftSpeed,m_dRightSpeed);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -