movegroup 配置moveit_controller_manager

一.使用的运动规划库

当前我们使用的是OMPL运动规划库,他支持多种类型的机器人和规划问题,可以用于解决复杂的运动规划问题。简单说,规划出一条运动轨迹。给定一个具体的机械臂结构,给定一个目标,然后OMPL会规划一条合理的不与环境中任何障碍发生碰撞的轨迹。

二.开始控制真实世界机械臂

1.demo.launch中的参数fake_excution值设置为false

在默认生成的moveit配置文件中,参数基本上是针对虚拟机械臂而言的,因此我们可以在rviz中观察到模型的运动,但是,这种控制虚拟机械臂的方法不会将真正的控制信号发送出来,所以我们要想在真实世界中控制机械臂时得到控制moveit输出的控制信号,所需要的action是FollowJointTrajectoryAction,它是moveit中专门控制真实机械臂的。

  <arg name="fake_execution" value="false"/>

将fake_execution设置为false,意思是启动真实机械臂执行

同时,注释以下代码,时期不在发布虚拟的joint_states,因为驱动真实机械臂时,我们要同步的是真实机械臂的joint_states,拿到真实机械臂的关节状态然后通过joint_states发布出来。

    <!-- We do not have a real robot connected, so publish fake joint states via a joint_state_publisher
             MoveIt's fake controller's joint states are considered via the 'source_list' parameter -->
        <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" unless="$(arg use_gui)">
          <rosparam param="source_list">[move_group/fake_controller_joint_states]</rosparam>
        </node>
        <!-- If desired, a GUI version is available allowing to move the simulated robot around manually
             This corresponds to moving around the real robot without the use of MoveIt. -->
        <node name="joint_state_publisher" pkg="joint_state_publisher_gui" type="joint_state_publisher_gui" if="$(arg use_gui)">
          <rosp

Package 'moveit_demo_nodes' not found: "package 'moveit_demo_nodes' not found, searching: ['/home/lihaonan1/ws_moveit/install/pilz_industrial_motion_planner_testutils', '/home/lihaonan1/ws_moveit/install/moveit_runtime', '/home/lihaonan1/ws_moveit/install/moveit', '/home/lihaonan1/ws_moveit/install/moveit_planners', '/home/lihaonan1/ws_moveit/install/pilz_industrial_motion_planner', '/home/lihaonan1/ws_moveit/install/moveit_ros_control_interface', '/home/lihaonan1/ws_moveit/install/moveit_plugins', '/home/lihaonan1/ws_moveit/install/moveit_simple_controller_manager', '/home/lihaonan1/ws_moveit/install/moveit_setup_assistant', '/home/lihaonan1/ws_moveit/install/moveit_setup_srdf_plugins', '/home/lihaonan1/ws_moveit/install/moveit_setup_core_plugins', '/home/lihaonan1/ws_moveit/install/moveit_setup_controllers', '/home/lihaonan1/ws_moveit/install/moveit_setup_app_plugins', '/home/lihaonan1/ws_moveit/install/moveit_setup_framework', '/home/lihaonan1/ws_moveit/install/moveit_servo', '/home/lihaonan1/ws_moveit/install/moveit_ros_trajectory_cache', '/home/lihaonan1/ws_moveit/install/moveit_ros', '/home/lihaonan1/ws_moveit/install/moveit_ros_visualization', '/home/lihaonan1/ws_moveit/install/moveit_py', '/home/lihaonan1/ws_moveit/install/moveit_hybrid_planning', '/home/lihaonan1/ws_moveit/install/moveit_ros_planning_interface', '/home/lihaonan1/ws_moveit/install/moveit_ros_benchmarks', '/home/lihaonan1/ws_moveit/install/moveit_ros_warehouse', '/home/lihaonan1/ws_moveit/install/moveit_ros_robot_interaction', '/home/lihaonan1/ws_moveit/install/moveit_ros_perception', '/home/lihaonan1/ws_moveit/install/moveit_resources_prbt_pg70_support', '/home/lihaonan1/ws_moveit/install/moveit_resources_prbt_moveit_config', '/home/lihaonan1/ws_moveit/install/moveit_ros_move_group', '/home/lihaonan1/ws_moveit/install/moveit_planners_ompl', '/home/lihaonan1/ws_moveit/install/moveit_kinematics', '/home/lihaonan1/ws_moveit/install/moveit_ros_planning', '/home/lihaonan1/ws_moveit/install/moveit_ros_occupancy_map_monitor', '/home/lihaonan1/ws_moveit/install/moveit_resources_prbt_support', '/home/lihaonan1/ws_moveit/install/moveit_resources_prbt_ikfast_manipulator_plugin', '/home/lihaonan1/ws_moveit/install/moveit_resources', '/home/lihaonan1/ws_moveit/install/moveit_resources_pr2_description', '/home/lihaonan1/ws_moveit/install/moveit_resources_panda_moveit_config', '/home/lihaonan1/ws_moveit/install/dual_arm_panda_moveit_config', '/home/lihaonan1/ws_moveit/install/moveit_resources_panda_description', '/home/lihaonan1/ws_moveit/install/moveit_resources_fanuc_moveit_config', '/home/lihaonan1/ws_moveit/install/moveit_resources_fanuc_description', '/home/lihaonan1/ws_moveit/install/moveit_planners_stomp', '/home/lihaonan1/ws_moveit/install/moveit_planners_chomp', '/home/lihaonan1/ws_moveit/install/chomp_motion_planner', '/home/lihaonan1/ws_moveit/install/moveit_core', '/home/lihaonan1/ws_moveit/install/moveit_msgs', '/home/lihaonan1/ws_moveit/install/moveit_configs_utils', '/home/lihaonan1/ws_moveit/install/moveit_common', '/opt/ros/jazzy']" 这怎么办
07-18
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值