ROS进阶

来源:互联网 发布:网络数据采集器 编辑:程序博客网 时间:2024/06/14 07:25

rbx2安装

cd ~wget http://raw.githubusercontent.com/pirobot/rbx2/indigo-devel/\rbx2-prereq.shsh rbx2-prereq.sh

rbx1和rbx2安装

cd ~/catkin_ws/srcgit clone -b indigo-devel http://github.com/pirobot/rbx1.gitgit clone -b indigo-devel http://github.com/pirobot/rbx2.gitcd ~/catkin_wscatkin_makesource ~/catkin_ws/devel/setup.bash
roslaunch pi_robot_moveit_config demo.launchrosrun moveit_commander moveit_commander_cmdline.py

ArbotiX关节轨迹动作控制器:

roslaunch rbx2_bringup pi_robot_with_gripper.launch sim:=truerosrun rviz rviz -d 'rospack find rbx2_arm_nav'/config/arm_sim.rvizrosrun rbx2_arm_nav trajectory_demo.py _reset:false_sync:=true

关于关节轨迹规划的代码复制尝试:

cd baxter_ws./baxter.sh sim#roslaunch baxter_moveit_config demo_baxter.launch sim:=truerosrun rviz rviz -d 'rospack find baxter_moveit_config'/launch/moveit.rvizchmod +x gripper_trajectory_demo.pypython gripper_trajectory_demo.pyrosrun baxter_examples gripper_trajectory_demo.py _reset:false_sync:=true

查看FollowJointTrajectory的完整定义

rosmsg show control_msgs/FollowJointTrajectoryAction |less

把物体与工具附在机器人上(失败)

roslaunch rbx2_bringup pi_robot_with_gripper.launch sim:=trueroslaunch pi_robot_moveit_config move_group.launchrosrun rviz rviz -d 'rospack find rbx2_arm_nav'/config/attached_object.rvizrosrun rbx2_arm_nav moveit_attached_object_demo.py

测试过程中机械臂的轨迹正常运行,但是场景物体无法正正常加载
但在baxter中测试正好相反,规划场景物体可以加载,但轨迹无法执行

拾取和放置

roslaunch rbx2_bringup pi_robot_with_gripper.launch sim:=trueroslaunch pi_robot_moveit_config move_group.launchrosrun rviz rviz -d 'rospack find rbx2_arm_nav'/config/pick_and_place.rvizrosrun rbx2_arm_nav moveit_pick_and_place_demo.py
rosrun rviz rviz -d 'rospack find rbx2_arm_nav'/config/moveit_cartesian_demo.pyrosrun rbx2_arm_nav moveit_cartesian_demo.py
阅读全文
0 0
原创粉丝点击