Added roslisp-warn macro.

This commit is contained in:
Lorenz Moesenlechner 2010-05-02 07:35:03 +00:00
parent 72eb68eec3
commit b58ae0998b
2 changed files with 6 additions and 1 deletions

View File

@ -74,7 +74,7 @@ Set up things so that publish may now be called with this topic. Also, returns
(with-fully-qualified-name topic
(with-mutex (*ros-lock*)
(unless (hash-table-has-key *publications* topic)
(roslisp-warn "Not publishing on ~a" topic))
(roslisp-warn "Not publishing on ~a" topic))
(remhash topic *publications*)
(protected-call-to-master ("unregisterPublisher" topic *xml-rpc-caller-api*) c
(ros-warn (roslisp) "Could not contact master at ~a when unregistering as publisher of ~a during shutdown: ~a" *master-uri* topic c)))))

View File

@ -85,6 +85,11 @@
(ros-error nil ,str ,@args)
(error ,str ,@args)))
(defmacro roslisp-warn (str &rest args)
`(progn
(ros-warn nil ,str ,@args)
(warn ,str ,@args)))
(defun get-ip-address (hostname)
"Map from hostname into a vector of the form #(127 0 0 1)"
(let ((address-vector