博客地址:https://www.cnblogs.com/zylyehuo/
參考鏈接
(相關資料圖)
Moveit!機械臂控制
文件下載-古月ROS教程視頻配套資料
解決Could not find a package configuration file provided by “manipulation_msgs“
moveIt之Unable to identify any set of controllers that can actuate the specified joints問題解決
Unable to identify any set of controllers that can actuate the specified joints: joint1 joint2 ...出錯
環境配置成果圖Part 1: Rviz 機械臂仿真step1: 下載機械臂模型Ubuntu 18.04 melodic
step2: 創建工作空間下載地址
文件下載-古月ROS教程視頻配套資料
mkdir -p 6R_mechanical_arm/srccd 6R_mechanical_armcatkin_makestep3: src文件夾step4: 在 rviz 中顯示機械臂模型將之前下載的機械臂模型中 description、gazebo、planning文件夾復制到 src文件夾下
在終端中運行 roscore在工作空間 6R_mechanical_arm 中打開終端roslaunch marm_description view_arm.launchstep5: 安裝 MoveIt在終端執行以下命令sudo apt-get install ros-melodic-moveitstep6: 啟動 MoveIt在終端執行以下命令rosrun moveit_setup_assistant moveit_setup_assistantstep7: 配置 MoveIt(1)Start(2)Self-Collisions(3)Planning Groups(核心)(4)Robot Poses(5)End Effectors(6)Author Information(7)Configuration Filesstep8: 重新編譯工作空間step9: 啟動demo文件,測試 rviz 仿真環境拖動規劃檢查是否與下圖一致
直接鼠標拖動機械臂末端執行器
點擊 plan ,進行路徑規劃
設置動畫是否循環播放隨機目標點規劃設置初始位姿添加場景物體點擊 excute ,機械臂運動
Part 2: MoveIt 基礎編程可通過拖動箭頭變換位置
關節空間規劃以下代碼運行都是在 rviz 打開的前提下執行
在工作空間中打開終端source ./devel/setup.bashrosrun marm_planning moveit_fk_demo.py工作空間規劃在工作空間中打開終端source ./devel/setup.bashrosrun marm_planning moveit_ik_demo.py笛卡爾路徑規劃顯示路徑走直線在工作空間中打開終端source ./devel/setup.bashrosrun marm_planning moveit_cartesian_demo.py _cartesian:=True (走直線)走曲線在工作空間中打開終端source ./devel/setup.bashrosrun marm_planning moveit_cartesian_demo.py _cartesian:=False (走曲線)*
避障規劃在工作空間中打開終端source ./devel/setup.bashrosrun marm_planning moveit_obstacles_demo.pyPart 3: Gazebo 機械臂仿真step1: 依賴文件配置(1)關節軌跡控制器trajectory_control.yamlarm_trajectory_controller.launch(2)MoveIt 控制器6R_mechanical_arm/src/marm_moveit_config/config/controllers.yaml在 6R_mechanical_arm/src/marm_moveit_config/config 路徑下新建 controllers.yaml 文件
controller_manager_ns: controller_managercontroller_list: - name: arm/arm_joint_controller action_ns: follow_joint_trajectory type: FollowJointTrajectory default: true joints: - joint1 - joint2 - joint3 - joint4 - joint5 - joint6 - name: arm/gripper_controller action_ns: follow_joint_trajectory type: FollowJointTrajectory default: true joints: - finger_joint1 - finger_joint26R_mechanical_arm/src/marm_moveit_config/launch/arm_moveit_controller_manager.launch.xml 6R_mechanical_arm/src/marm_moveit_config/launch/moveit_planning_execution.launch # The planning and execution components of MoveIt! configured to # publish the current configuration of the robot (simulated or real) # and the current state of the world as seen by the planner # The visualization component of MoveIt! [/arm/joint_states] (3)啟動環境arm_world.launch(4)聯結所有 launch 文件arm_bringup_moveit.launchstep2: 啟動 gazebo 和 rviz 仿真環境在工作空間路徑下打開終端,輸入以下命令source ./devel/setup.bashroslaunch marm_gazebo arm_bringup_moveit.launch調整 rviz 設置調整 gazebo 設置step3: 使用 MoveIt存在模型抖動現象,暫時不調整
問題匯總1、Could not find a package configuration file provided by “manipulation_msgs“調整機器人目標位置
點擊 Plan & Execute
2、點擊 plan&execute 后,rviz有變化,gazebo無變化解決方法
參考地址:解決Could not find a package configuration file provided by “manipulation_msgs“
下載地址:
GitHub - ros-interactive-manipulation/manipulation_msgs: The package in this repo is DEPRECATED (see https://github.com/ros-interactive-manipulation/manipulation_msgs/issues/9)
GitHub - ros-interactive-manipulation/household_objects_database_msgs: Messages for the household_objects_database. The package in this repo is DEPRECATED and you"re advised to see moveit_msgs instead (see also https://github.com/ros-interactive-manipulation/household_objects_database_msgs/issues/5)
解決方案一:在終端執行以下代碼sudo apt install ros-melodic-ros-controllers解決方案二:修改文件:工作空間/src/marm_moveit_config/launch/trajectory_execution.launch.xml將參數 pass_all_args="true" 刪掉即可 5月11日,峰捷(湖北)供應鏈有限公司、東風商用車有限公司與荊門中澤汽車有限公司在湖北十堰共同簽署了采購100臺東風天龍牽引車的戰略合作協
冠軍之路、巔峰對決,東風天龍中國卡車駕駛員大賽(第6季)暨東風陽光杯第2屆全國商用車維修技能競賽決賽單元即將火熱開戰。高手云集、比武論
5月10日,期待已久的東風天龍GX全場景干線接力實測在成都啟創嘉立正式啟動,東風商用車有限公司營銷公司品牌傳播首席師趙金宿、東風商用車
5月10日,期待已久的東風天龍GX全場景干線接力實測活動在成都啟動,從成都至上海回十堰,5位眾測官將完成油耗接力挑戰和實測品鑒,為我們真
都說成年面對生活中的選擇時不做選擇,從來都是既要、又要,跑運長途輸的卡友同樣如此,既想要賺得多,又想要低消耗。原本是奢望與難題,但
隨著4月26日世界知識產權日的到來,東風商用車知識產權活動周也積極開展起來,除了有內容豐富的IPR培訓、趣味多多的知識產權問答競賽,還有
4月23日,東風商用車有限公司的物流合作伙伴——山東YS運輸有限公司、山東CD物流有限公司主要負責人來到車城十堰,現場參觀東風商用車品牌
2023年4月22日,東風商用車蘇魯豫皖大馬力市場突破啟動會在蘇州召開,東風商用車有限公司總經理張小帆,采購領域總監黃紹軍,營銷公司總經
致敬四十年,砥礪啟新程。2023年4月22日,以超越自我 掌控未來為主題的東風商用車研發40年暨2023東風商用車研發文化節在武漢隆重舉辦。老
2023年4月22日,東風商用車研發40年暨2023東風商用車研發文化節將在武漢舉行。1983年,東風汽車技術中心的前身——二汽技術中心正式成立,

天天觀焦點:【首屆爽爽貴陽電子競技
"王者 "賽道,誰將奪魁?爽爽貴陽電子競技大賽——2023西南王者榮耀邀請賽海選賽落幕,榮耀之戰倒計時開啟

省成本 施工快 貴州推進磷石膏噴筑
新華網貴陽5月12日電(黃勇)由貴州磷化綠色環保產業有限公司研制開發的磷石膏噴筑墻體技術,正在貴州理工

廣西3個公路水運建設項目 冠名2021
【原標題】廣西3個公路水運建設項目冠名2021年度“平安工程”昨日,記者從自治區交通運輸廳了解到,交通運

前沿熱點:河北新河:西瓜豐收瓜農忙
近日,在河北省新河縣白神首鄉西鄭家莊種植基地,吊蔓西瓜進入成熟期,瓜農忙著采摘、包裝,供應市場。吊蔓

【全球聚看點】前4月廣西對東盟進出
【原標題】前4月廣西對東盟進出口破千億元記者5月12日從南寧海關獲悉,今年前4個月,廣西外貿持續向好,進