Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #769 from knorth55/ik-reachability-fetch
[merge after #772] [jsk_ik_server] add fetch ik reachability map script
- Loading branch information
Showing
10 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env roseus | ||
|
||
(load "package://jsk_ik_server/euslisp/ik-evaluation.l") | ||
|
||
(warning-message 2 "It takes much time! Be patient!~%") | ||
|
||
(require "package://fetcheus/fetch-interface.l") | ||
(setq *robot* (make-robot-model-from-name "fetch")) | ||
(setq *xrange* '(0.0 . 1000.0)) | ||
(setq *yrange* '(-2000.0 . 2000.0)) | ||
(setq *zrange* '(0.0 . 2000.0)) | ||
(setq *output-directory* (ros::resolve-ros-path "package://jsk_ik_server/data/")) | ||
|
||
(generate-ik-grid-for-robot *robot* "fetch-zup" | ||
*xrange* *yrange* *zrange* | ||
100 | ||
'(:rotation-axis :z :use-torso t) | ||
(unit-matrix) | ||
*output-directory* | ||
:arm :rarm) | ||
(generate-ik-grid-for-robot *robot* "fetch-yup" | ||
*xrange* *yrange* *zrange* | ||
100 | ||
'(:rotation-axis :z :use-torso t) | ||
(send (make-coords :rpy (list 0 0 pi/2)) :worldrot) | ||
*output-directory* | ||
:arm :rarm) | ||
(generate-ik-grid-for-robot *robot* "fetch-xup" | ||
*xrange* *yrange* *zrange* | ||
100 | ||
'(:rotation-axis :z :use-torso t) | ||
(send (make-coords :rpy (list 0 -pi/2 0)) :worldrot) | ||
*output-directory* | ||
:arm :rarm) | ||
|
||
(sys::exit 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
rosrun jsk_ik_server fetch.l | ||
find $(rospack find jsk_ik_server) -name fetch-*.csv -exec rosrun jsk_ik_server plot_ik_grid.py {} {}.png \; | ||
|
||
# Concatenate pickview images | ||
for prefix in xup yup zup | ||
do | ||
convert +append ../../data/fetch-${prefix}-input-slant.png ../../data/fetch-${prefix}-input-up.png ../../data/fetch-${prefix}-input-side.png ../../data/fetch-${prefix}-input-front.png ../../data/fetch-${prefix}-input-concatenated.png | ||
|
||
for i in $(seq 0 9) | ||
do | ||
convert +append ../../data/fetch-${prefix}-iterate$(printf "%03d" ${i})-slant.png ../../data/fetch-${prefix}-iterate$(printf "%03d" ${i})-up.png ../../data/fetch-${prefix}-iterate$(printf "%03d" ${i})-side.png ../../data/fetch-${prefix}-iterate$(printf "%03d" ${i})-front.png ../../data/fetch-${prefix}-iterate$(printf "%03d" ${i})-concatenated.png | ||
done | ||
done |