ROS下查看rviz中的机械臂位姿

描述

ROS系统下,想要查看Rviz中机械臂的末端位姿

命令

  1. 在已经roslaunch某个文件,打开了gazebo和rviz后
    另起终端执行命令

    rosrun moveit_commander moveit_commander_cmdline.py
    
  2. 执行命令

    use <group name>
    

    为自己程序中设置的,我执行的是默认的manipulator

    use manipulator
    
  3. 执行命令

    current
    

    current命令将会返回运动组的当前状态,包括关节的状态(关节1, 2, 3, ……)和末端的状态(px, py, pz, ox, oy, oz, ow)

  4. 得到结果
    结果示例

    current
    joints = [0.024362181615 -0.766599546606 0.984416318932 -0.218138826773 0.0244373199934 0.000484864547573]
    ee_link pose = [
    header: 
      seq: 0
      stamp: 
        secs: 65
        nsecs: 834000000
      frame_id: "/world"
    pose: 
      position: 
        x: 0.686271368666
        y: 0.20820462441
        z: 0.20456326523
      orientation: 
        x: -0.707133343088
        y: -0.707080213584
        z: 5.48115477562e-05
        w: 6.03803562514e-05 ]
    ee_link RPY = [-3.141429747340933, -7.869364379764052e-06, 1.5707211896882936]
    manipulator> 
    
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值