Skip to content

Commit 08ed399

Browse files
authored
Merge branch 'master' into method-search-branch
2 parents e129017 + 10158f9 commit 08ed399

File tree

7 files changed

+36
-19
lines changed

7 files changed

+36
-19
lines changed

.travis.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@ if [ "$TRAVIS_OS_NAME" == "linux" ]; then
3535

3636
fi
3737
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
38-
rvm get head || true # hotfix until rvm stable release (refer: https://github.com/travis-ci/travis-ci/issues/6307)
3938
travis_time_start setup.install
40-
brew tap homebrew/x11
41-
brew install jpeg libpng mesalib-glw wget;
39+
# skip if already installed
40+
# https://discourse.brew.sh/t/skip-ignore-brew-install-if-package-is-already-installed/633/2
41+
# brew install jpeg libpng mesalib-glw;
42+
brew list jpeg &>/dev/null || brew install jpeg
43+
brew list libpng &>/dev/null || brew install libpng
44+
brew list mesalib-glw &>/dev/null || brew install mesalib-glw
4245
travis_time_end
4346

4447
fi

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ notifications:
5454
slack: jsk-robotics:Av7tc8wj3IWkLYvlTzHE7x2g
5555
before_install: # Use this to prepare the system to install prerequisites or dependencies
5656
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
57+
# use stable rvm to avoid "shell_session_update: command not found" error on OSX.
58+
# https://github.com/travis-ci/travis-ci/issues/6307
59+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; command curl -sSL https://rvm.io/mpapis.asc | gpg --import -; then rvm get stable; fi
5760
# Define some config vars
5861
install:
5962
- export CI_SOURCE_PATH=$(pwd)

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
1-
## [EusLisp](http://euslisp.sourceforge.net) [![Build Status](https://travis-ci.org/euslisp/EusLisp.png?branch=master)](https://travis-ci.org/euslisp/EusLisp)
1+
## [EusLisp] [![Build Status](https://travis-ci.org/euslisp/EusLisp.png?branch=master)](https://travis-ci.org/euslisp/EusLisp)
22

3-
EusLisp was originally developed by [Dr. Toshihiro Matusi at AIST](http://staff.aist.go.jp/t.matsui/ )
3+
EusLisp was originally developed by [Dr. Toshihiro Matsui at AIST](http://staff.aist.go.jp/t.matsui/ )
44

55
This page and repository are maintained by [JSK](http://www.jsk.t.u-tokyo.ac.jp ) at The University of Tokyo.
66

77
### Introduction
88

99
EusLisp is an integrated programming system for the research on intelligent robots based on Common Lisp and Object-Oriented programming. The principal subjects in the field of robotics research are sensory data processing, visual environment recognition, collision avoiding motion planning, and task planning. In either problem, three dimensional shape models of robots and environment play crucial roles. A motivation to the development of EusLisp was a demand for an extensible solid modeler that can easily be made use of from higher level symbolic processing system. Investigations into traditional solid modelers proved that the vital requirement for their implementation language was the list processing capability to represent and manage topology among model components. Numerical computation power was also important, but locality of geometric computation suggested the provision of vector/matrix functions as built-ins would greatly ease programming. (From [EusLisp Manual, Part I, EusLisp Basics, 1. Introduction](http://staff.aist.go.jp/t.matsui/eus/intro/eusintro.html ))
1010

11-
### Easy Installation and Demo Program
11+
### How To Download and Compile
1212

13-
Please check http://jskeus.sourceforge.net for easy installation and current demo programs. Most of programs in euslisp/eus/lib/ euslisp/eus/contrib/ directories are out-dated.
13+
### Installation
1414

15-
### How To Download and Compile
15+
#### Binary Installation (Recommended)
16+
17+
Please check http://github.com/euslisp/jskeus for easy binary installation and how to run current
18+
demo programs. Most of programs in EusLisp/lib/ EusLisp/contrib/ directories are outdated.
19+
20+
#### Source Installation (Experts Only)
1621

17-
Note: we strongly recommend you to check http://github.com/euslisp/jskeus for download and compile euslisp and irteus; humanoid model description and other useful function layer on euslisp . Following description is only for euslisp hard-core developers.
22+
Note: we strongly recommend you to check http://github.com/euslisp/jskeus for download and compile euslisp and irteus; humanoid model description and other useful function layer on euslisp. Following description is only for euslisp hard-core developers.
1823

1924

2025
```

lisp/c/arith.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ register pointer argv[];
989989
ckarg(1);
990990
a=argv[0];
991991
if (a==makeint(MINNEGFIXNUM)) return(makebig1(-MINNEGFIXNUM));
992-
if (isint(a)) return(makeint(abs(intval(a))));
992+
if (isint(a)) return(makeint(labs(intval(a))));
993993
else if (isflt(a)) return(makeflt(fabs(fltval(a))));
994994
else if (pisbignum(a)) {
995995
if (big_sign(a)<0) {

lisp/c/eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ struct bindframe *env,*bf;
319319
inits[nokeys]=initform;
320320
nokeys++;
321321
if (nokeys>=KEYWORDPARAMETERLIMIT) {
322-
error(E_USER, "Too many keyword parameters >32");
322+
error(E_USER, "Too many keyword parameters >%d",KEYWORDPARAMETERLIMIT);
323323
}
324324
}
325325
n=0;

lisp/comp/comp.l

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@
407407
(send trans :nullx) 'symbol)
408408
((eq) (check-arg 2 argcount 'eq) (send trans :eqx) 'symbol)
409409
((memq) (check-arg 2 argcount 'memq) (send trans :memqx) t)
410-
((1+) (check-arg 1 argcount '1+) (send trans :1+) 'integer)
411-
((1-) (check-arg 1 argcount '1-) (send trans :1-) 'integer)
410+
((1+) (check-arg 1 argcount '1+) (if (integerp (car args)) (progn (send trans :1+) 'integer) (progn (send trans :call sym argcount) 'float)))
411+
((1-) (check-arg 1 argcount '1-) (if (integerp (car args)) (progn (send trans :1-) 'integer) (progn (send trans :call sym argcount) 'float)))
412412
((car first) (check-arg 1 argcount sym) (send trans :car) t)
413413
((cdr rest) (check-arg 1 argcount sym) (send trans :cdr) t)
414414
((cadr second) (check-arg 1 argcount sym) (send trans :cadr) t)
@@ -1004,8 +1004,8 @@
10041004
(nreverse key-vars)
10051005
(nreverse key-inits)
10061006
;(format t ";key-names length=~d ~s~%" (length key-names) key-names)
1007-
(if (>= (length key-names) 32)
1008-
(send self :error "Too many keyword parameters>32 ~s" key-names))
1007+
(if (>= (length key-names) 128) ;; KEYWORDPARAMETERLIMIT
1008+
(send self :error "Too many keyword parameters>128 ~s" key-names))
10091009
) )
10101010
;; declaration
10111011
(while (and forms (consp (car forms)) (eq (caar forms) 'declare))
@@ -1223,6 +1223,8 @@
12231223
(setq *optimize* optimize
12241224
*safety* safety
12251225
*verbose* verbose)
1226+
(unless (send (pathname file) :directory)
1227+
(setq file (namestring (merge-pathnames "./" file))))
12261228
(when o
12271229
(setq o (pathname o))
12281230
(setq o (merge-pathnames o file))

lisp/geo/geopack.l

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,11 +1164,15 @@ Normal must be given if the sign of the angle is needed."
11641164
(:distance (point)
11651165
(let (foot (sign (signum (send self :plane-distance point))))
11661166
(setq foot (send self :foot point))
1167-
(* sign
1168-
(if (memq (send self :insidep foot) '(:inside :parallel))
1169-
(distance foot point)
1167+
(if (= sign 0.0) ;; on the same plane
1168+
(if (memq (send self :insidep foot) '(:inside :parallel))
1169+
0.0
1170+
(apply #'min (send-all (send self :all-edges) :distance point)))
1171+
(* sign
1172+
(if (memq (send self :insidep foot) '(:inside :parallel))
1173+
(distance foot point)
11701174
(apply #'min (send-all (send self :all-edges)
1171-
:distance point))))) )
1175+
:distance point))))) ))
11721176
(:area ()
11731177
(- (send-super :area) (apply #'+ (send-all holes :area))))
11741178
#|

0 commit comments

Comments
 (0)