本文整理匯總了Python中moveit_commander.RobotCommander.get_link_names方法的典型用法代碼示例。如果您正苦於以下問題:Python RobotCommander.get_link_names方法的具體用法?Python RobotCommander.get_link_names怎麽用?Python RobotCommander.get_link_names使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類moveit_commander.RobotCommander
的用法示例。
在下文中一共展示了RobotCommander.get_link_names方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: roscpp_initialize
# 需要導入模塊: from moveit_commander import RobotCommander [as 別名]
# 或者: from moveit_commander.RobotCommander import get_link_names [as 別名]
from moveit_msgs.msg import Grasp, GripperTranslation, PlaceLocation
from trajectory_msgs.msg import JointTrajectoryPoint
import tf
if __name__=='__main__':
roscpp_initialize(sys.argv)
rospy.init_node('moveit_py_demo', anonymous=True)
scene = PlanningSceneInterface()
robot = RobotCommander()
right_arm = MoveGroupCommander("arm")
print "============ Robot Groups:"
print robot.get_group_names()
print "============ Robot Links for arm:"
print robot.get_link_names("arm")
print "============ Robot Links for gripper:"
print robot.get_link_names("gripper")
print right_arm.get_end_effector_link()
print "============ Printing robot state"
#print robot.get_current_state()
print "============"
rospy.sleep(1)
# clean the scene
scene.remove_world_object("pole")
scene.remove_world_object("table")
#scene.remove_world_object("part")
scene.remove_world_object("grasp_marker")