39 from moveit_commander
import RobotCommander, roscpp_initialize, roscpp_shutdown
40 from moveit_msgs.msg
import RobotState
42 if __name__==
'__main__':
45 rospy.init_node(
'moveit_py_demo', anonymous=
True)
47 robot = RobotCommander()
50 print "Current state:" 51 print robot.get_current_state()
55 a.set_start_state(RobotState())
56 r = a.get_random_joint_values()
57 print "Planning to random joint position: " def roscpp_initialize(args)