导航

    蓝鲸ROS机器人论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 热门
    ROS交流群
    ROS Group
    产品服务
    Product Service
    开源代码库
    Github
    官网
    Official website
    技术交流
    Technological exchanges
    激光雷达
    LIDAR
    ROS教程
    ROS Tourials
    深度学习
    Deep Learning
    机器视觉
    Computer Vision

    自动回充问题求解答

    ROS教程
    1
    1
    885
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • cams
      cams 最后由 编辑

      1.发射区域
      说明中分了4块区域左侧区域,右侧区域,中间区域,区域内的值为4,1,2,3(重合区),请问下,4这个值是广角红外发射的值,会出现在左侧区域,右侧区域,中间区域中吗?
      2.位姿计算
      机器人的坐标原点在哪里?
      下面代码的变换过程能用图表解释下吗?
      void DockController::caculatePose3()
      {
      float theta1, theta2, x, y, theta;

      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);
      

      3.}

      1. 0.3;//多少度?
        if (mdock__referenss_position_ == DOCK_POSITION::left_center)
        {
        //右转
        current_vel.angular.z = -0.3;//多少度?
        }
      1 条回复 最后回复 回复 引用 0
      • 1 / 1
      • First post
        Last post
      Copyright © 2015-2023 BlueWhale community