Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorials:intermediate:moveit [2015/06/05 07:01] – [Forward and Inverse Kinematics] mpomarlan | tutorials:intermediate:moveit [2016/03/07 19:55] – [Accessing the robot state] gkazhoya | ||
---|---|---|---|
Line 11: | Line 11: | ||
Fortunately, | Fortunately, | ||
- | You will also need the tutorial initialization code. Go to the src folder of your ROS workspace and check whether the cram_tutorials folder exists, and whether it contains cram_intermediate_tutorials. If not, retrieve this code [[https:// | + | You will also need the tutorial initialization code. Go to the src folder of your ROS workspace and check whether the cram_tutorials folder exists, and whether it contains cram_intermediate_tutorials. If not, retrieve this code [[https:// |
===== Initializing cram_moveit ===== | ===== Initializing cram_moveit ===== | ||
Line 23: | Line 23: | ||
In another tab, run | In another tab, run | ||
- | < | + | < |
- | roslaunch | + | roslaunch |
</ | </ | ||
Line 31: | Line 31: | ||
Finally, in the last tab run the roslisp REPL. Once it has started up, type the following at its command prompt: | Finally, in the last tab run the roslisp REPL. Once it has started up, type the following at its command prompt: | ||
- | <code lisp>(swank:operate-on-system-for-emacs | + | <code lisp> |
- | + | CL-USER> (ros-load:load-system "cram_intermediate_tutorial" | |
- | (in-package :moveit) | + | CL-USER> |
- | + | CL-USER> (in-package : | |
- | (tuti: | + | </ |
- | This will load the tutorial code (and its dependencies, | + | This will load the tutorial code (and its dependencies, |
- | For now, tuti: | + | For now, '' |
<code lisp> | <code lisp> | ||
- | (roslisp: | + | (roslisp: |
- | (moveit: | + | (cram-moveit: |
</ | </ | ||
Line 84: | Line 84: | ||
</ | </ | ||
- | Notice that it's a list of lists (joint-name joint-values), | + | Notice that it's a list of lists '' |
<code lisp> | <code lisp> | ||
Line 104: | Line 104: | ||
</ | </ | ||
- | Play a bit with the robot in RViz: move one arm (remember to click Plan and Execute to make sure the movement actually happens!), then use joint-states to look at some joint on the arm and see that it changes. | + | Play a bit with the robot in RViz: move one arm (remember to click Plan and Execute to make sure the movement actually happens!), then use '' |
- | Another function you can use to get the current robot state is get-planning-scene-info. To get a robot state ROS message (as opposed to a list of name-value pairs), use the following: | + | Another function you can use to get the current robot state is '' |
<code lisp> | <code lisp> | ||
Line 159: | Line 159: | ||
" | " | ||
" | " | ||
- | tuti: | + | |
0.1 | 0.1 | ||
1.5 | 1.5 |