<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[自动回充问题求解答]]></title><description><![CDATA[<p dir="auto">1.发射区域<br />
说明中分了4块区域左侧区域，右侧区域，中间区域，区域内的值为4，1，2，3（重合区），请问下，4这个值是广角红外发射的值，会出现在左侧区域，右侧区域，中间区域中吗？<br />
2.位姿计算<br />
机器人的坐标原点在哪里？<br />
下面代码的变换过程能用图表解释下吗？<br />
void DockController::caculatePose3()<br />
{<br />
float theta1, theta2, x, y, theta;</p>
<pre><code>tf::Quaternion q1(mPose1_.orientation.x, mPose1_.orientation.y, mPose1_.orientation.z, mPose1_.orientation.w);
tf::Matrix3x3 m1(q1);
double roll, pitch, yaw;
m1.getRPY(roll, pitch, yaw);
theta1 = yaw;

tf::Quaternion q2(mPose1_.orientation.x, mPose1_.orientation.y, mPose1_.orientation.z, mPose1_.orientation.w);
tf::Matrix3x3 m2(q2);
m2.getRPY(roll, pitch, yaw);
theta2 = yaw;

x = (mPose1_.position.x + mPose2_.position.x) / 2.0f;
y = (mPose1_.position.y + mPose2_.position.y) / 2.0f;
theta = (theta1 + theta2) / 2.0f;

mPose3_[0] = x - back_distance_ * cos(theta);
mPose3_[1] = y - back_distance_ * sin(theta);
mPose3_[2] = theta;
//ROS_DEBUG("theta12  %f  %f x1 y1 %f %f x2 y2 %f %f ", theta1, theta2, mPose1_.position.x, mPose1_.position.y,
//            mPose2_.position.x, mPose2_.position.y);
</code></pre>
<p dir="auto">3.}</p>
<ol start="3">
<li>0.3;//多少度？<br />
if (mdock__referenss_position_ == DOCK_POSITION::left_center)<br />
{<br />
//右转<br />
current_vel.angular.z = -0.3;//多少度？<br />
}</li>
</ol>
]]></description><link>http://community.bwbot.org/topic/16433/自动回充问题求解答</link><generator>RSS for Node</generator><lastBuildDate>Thu, 15 Oct 2026 02:21:46 GMT</lastBuildDate><atom:link href="http://community.bwbot.org/topic/16433.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Apr 2021 07:04:06 GMT</pubDate><ttl>60</ttl></channel></rss>