鱼香ROS社区
    • 版块
    • 最新
    • 未解决
    • 已解决
    • 群组
    • 注册
    • 登录
    紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
    提问前必看的发帖注意事项: 社区问答规则(小鱼个人)更新 | 高质量帖子发布指南

    gazebo仿真的时候转向怎么控制的顺滑

    已定时 已固定 已锁定 已移动 未解决
    综合问题
    gazebo ros1
    2
    2
    433
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 小丑汪小
      WOW995
      最后由 编辑

      我在进行铲车仿真的时候,控制转向角的时候模型反应比较慢,置0的时候不能回到0位,转向运动的时候模型发生抖动。各位大佬看看是什么原因

      <!-- motors and transmissions for the two rear wheels -->
        <transmission name="tran1">
          <type>transmission_interface/SimpleTransmission</type>
          <joint name="back_right_wheel2base_link">
            <hardwareInterface>hardware_interface/VelocityJointInterface</hardwareInterface>
          </joint>
          <actuator name="motor1">
            <hardwareInterface>hardware_interface/VelocityJointInterface</hardwareInterface>
            <mechanicalReduction>1</mechanicalReduction>
          </actuator>
        </transmission>  
      
        <transmission name="tran2">
          <type>transmission_interface/SimpleTransmission</type>
          <joint name="back_left_wheel2base_link">
            <hardwareInterface>hardware_interface/VelocityJointInterface</hardwareInterface>
          </joint>
          <actuator name="motor2">
            <hardwareInterface>hardware_interface/VelocityJointInterface</hardwareInterface>
            <mechanicalReduction>1</mechanicalReduction>
          </actuator>
        </transmission>  
      
        <!-- EPS and transmissions for the front steering -->
        <transmission name="tran3">
          <type>transmission_interface/SimpleTransmission</type>
          <joint name="steering_hinge2base_link">
            <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
          </joint>
          <actuator name="eps">
            <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
            <mechanicalReduction>1</mechanicalReduction>
          </actuator>
        </transmission>
      
        <transmission name="tran4">
          <type>transmission_interface/SimpleTransmission</type>
          <joint name="front_right_wheel2steering_hinge">
            <hardwareInterface>hardware_interface/VelocityJointInterface</hardwareInterface>
          </joint>
          <actuator name="motor3">
            <hardwareInterface>hardware_interface/VelocityJointInterface</hardwareInterface>
            <mechanicalReduction>1</mechanicalReduction>
          </actuator>
        </transmission>  
      
        <transmission name="tran5">
          <type>transmission_interface/SimpleTransmission</type>
          <joint name="front_left_wheel2steering_hinge">
            <hardwareInterface>hardware_interface/VelocityJointInterface</hardwareInterface>
          </joint>
          <actuator name="motor4">
            <hardwareInterface>hardware_interface/VelocityJointInterface</hardwareInterface>
            <mechanicalReduction>1</mechanicalReduction>
          </actuator>
        </transmission> 
      
      
        <!-- Friction Parametres -->
      
        <gazebo reference="back_right_wheel">
          <mu1>2.0</mu1>
          <mu2>2.0</mu2>
          <kp>10000000</kp>
          <kd>1</kd>
        </gazebo>  
      
        <gazebo reference="back_left_wheel">
          <mu1>2.0</mu1>
          <mu2>2.0</mu2>
          <kp>10000000</kp>
          <kd>1</kd>         
        </gazebo>   
      
        <gazebo reference="front_right_wheel">
          <mu1>2.0</mu1>
          <mu2>2.0</mu2>
          <kp>10000000</kp>
          <kd>1</kd>         
        </gazebo> 
      
        <gazebo reference="front_left_wheel">
          <mu1>2.0</mu1>
          <mu2>2.0</mu2>
          <kp>10000000</kp>
          <kd>1</kd>           
        </gazebo>   
      

      控制的ymal文件

      xul307a:
      # controls the rear two tires based on individual motors
        # Publish all joint states -----------------------------------
        joint_state_controller:
          type: joint_state_controller/JointStateController
          publish_rate: 50  
        back_right_velocity_controller:
          type: velocity_controllers/JointVelocityController
          joint: back_right_wheel2base_link
          pid: {p: 100.0, i: 0.01, d: 10.0}
        back_left_velocity_controller:
          type: velocity_controllers/JointVelocityController
          joint: back_left_wheel2base_link
          pid: {p: 100.0, i: 0.01, d: 10.0}
        steering_position_controller:
          type: effort_controllers/JointPositionController
          joint: steering_hinge2base_link
          pid: {p: 25000, i: 0, d: 10.0}
        front_right_velocity_controller:
          type: velocity_controllers/JointVelocityController
          joint: front_right_wheel2steering_hinge
          pid: {p: 100.0, i: 0.01, d: 10.0}
        front_left_velocity_controller:
          type: velocity_controllers/JointVelocityController
          joint: front_left_wheel2steering_hinge
          pid: {p: 100.0, i: 0.01, d: 10.0}    
      

      不能上传视频,我传到b站上去了
      链接文本
      链接文本

      吴凯荣吴 1 条回复 最后回复 回复 引用 0
      • 吴凯荣吴
        吴凯荣 @小丑汪
        最后由 编辑

        @小丑汪 仿真的FPS很低,先排除视觉效果的影响。不过RTF还蛮高的,能到1

        1 条回复 最后回复 回复 引用 0
        • 第一个帖子
          最后一个帖子
        皖ICP备16016415号-7
        Powered by NodeBB | 鱼香ROS