Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Fetch navigation euslisp scripts #1327

Merged
merged 58 commits into from
Sep 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
1c2afbe
add fetch-init
knorth55 Oct 17, 2019
5087f75
refactor navigation-utils.l
knorth55 Oct 17, 2019
a7ca736
move go-to-kitchen in navigation-utils.l
knorth55 Oct 17, 2019
86c755d
add n-dock-trial for go-to-kitchen
knorth55 Oct 17, 2019
17d1e02
rotate after undock when going to kitchen
knorth55 Oct 18, 2019
4737f08
clear costmap at the beginning of going to kitchen
knorth55 Oct 18, 2019
8aa3379
use edgetpu image for kitchen demo tweet
knorth55 Oct 18, 2019
1d75d1f
add ros-info and ros-error for logging
knorth55 Oct 22, 2019
fc6d9a6
update auto-dock.l
knorth55 Oct 23, 2019
fb41265
go to stove and sink in kitchen demo
knorth55 Oct 23, 2019
82fdb01
fix go-to-spot function
knorth55 Oct 23, 2019
34c822a
do not go to in front of sink
knorth55 Oct 23, 2019
942caa7
use normal go-pos-unsafe in go-to kitchen
knorth55 Oct 25, 2019
fbdb5e9
add n-trial-kitchen key
knorth55 Oct 26, 2019
72ba470
update go-to-kitchen motion
knorth55 Nov 8, 2019
789b77d
fix go-to-kitchen motion
knorth55 Nov 8, 2019
a511bdb
update go-to-kitchen move
knorth55 Nov 8, 2019
6c7b697
clear costmap before autodock
knorth55 Nov 9, 2019
95fa42d
move clear-costmap inside go-to-spot
knorth55 Nov 9, 2019
fef2aa8
add use-pose tag in simpple-dock function
knorth55 Apr 28, 2020
851dd89
rotate before moves
knorth55 Apr 28, 2020
b16f3e3
rotate before move
knorth55 May 1, 2020
488c8a9
rotate -90 + -90 to avoid rotating in couterclockwise
May 19, 2020
9761b48
switch on/off room light by google home
knorth55 Sep 17, 2020
6393b67
return success or not in go-to-kitchen
knorth55 Nov 18, 2020
a6d7eda
support fetch1075 for navigation-utils.l
knorth55 Dec 22, 2020
1434915
update fetch1075 dock spots
knorth55 Apr 3, 2021
c0fbd5e
fix navigation-utils for new fetch dock spot
knorth55 Apr 3, 2021
4d32e06
do not move when undock failed
knorth55 Apr 3, 2021
81e6a66
disable and enable base breaker when undock is failed
knorth55 Apr 3, 2021
0f6c124
[jsk_fetch_startup] fix parenthesis
Apr 4, 2021
aa518f7
[jsk_fetch_startup] fix coordinate values of go-to-kitchen
Apr 4, 2021
19ddf6b
return exit code in go-to-kitchen.l
knorth55 Apr 5, 2021
bb646b2
check msg is nil in navigation-utils.l
knorth55 Apr 8, 2021
24365bc
Use output of check_room_light.py in navigation-utils.l
708yamaguchi Apr 10, 2021
9e5e3db
Check if roo-light-msg is nil or not
708yamaguchi Apr 10, 2021
aada728
Fetch speaks to Google Home in English to improve recognition accuracy
708yamaguchi May 18, 2021
8d53cc3
fix typo in navigation-utils.l
knorth55 May 22, 2021
c4df38b
wait until light off
knorth55 May 31, 2021
838fc5e
change inflation radius in go-to-kitchen app
knorth55 May 31, 2021
764bf9c
Look at Google Home before talking in go-to-kitchen
708yamaguchi Jun 1, 2021
bb503bf
Smaller inflation radius in go-to-kitchen
708yamaguchi Jun 1, 2021
a549d53
Update go-to-kitchen demo
708yamaguchi Jun 3, 2021
0390857
check battery charging state at the end of kitchen demo
knorth55 Jun 10, 2021
03262c7
check msg is nil or not before accessing slot
knorth55 Jun 11, 2021
e8b6fab
Turn on/off switchbots from switchbot_ros API
708yamaguchi Jun 17, 2021
d057754
wait and speak at switchbot control-device
708yamaguchi Jun 17, 2021
74cd9f0
refactor navigation-utils to add functions
knorth55 Jun 19, 2021
8b537dc
chmod +x, shebang and add exit at last
knorth55 Jun 19, 2021
2be649c
use smach state machine in go-to-kitchen.l
knorth55 Jun 19, 2021
9641962
return name of result state in go-to-kitchen-smach
knorth55 Jun 23, 2021
8376c43
add light-off.l
knorth55 Jul 10, 2021
b6602cf
add light-on.l
knorth55 Jul 10, 2021
4de2866
exit in speak-battery ap
knorth55 Dec 24, 2020
d7eb6f1
Merge branch 'master' into fetch-euslisp-navigation
knorth55 Jul 17, 2021
6670b7a
Merge branch 'master' into fetch-euslisp-navigation
knorth55 Sep 12, 2021
1cc4d83
Merge branch 'master' into fetch-euslisp-navigation
knorth55 Sep 19, 2021
04eb51d
Merge branch 'master' into fetch-euslisp-navigation
knorth55 Sep 21, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions jsk_fetch_robot/jsk_fetch_startup/euslisp/auto-dock.l
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
;; go-dock.l
;; Author: Yuki Furuta <[email protected]>
#!/usr/bin/env roseus

(ros::roseus "fetch_go_dock")
(require :fetch-interface "package://fetcheus/fetch-interface.l")
(load "package://jsk_fetch_startup/euslisp/navigation-utils.l")

(ros::roseus "fetch_go_dock")
(fetch-init)
(send *ri* :clear-costmap)
(auto-dock)
(exit)
(sys::exit 0)
4 changes: 2 additions & 2 deletions jsk_fetch_robot/jsk_fetch_startup/euslisp/call-k-okada.l
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
;; go-dock.l
;; Author: Yuki Furuta <[email protected]>
#!/usr/bin/env roseus

(ros::roseus "call_k_okada")
(load "package://jsk_fetch_startup/euslisp/navigation-utils.l")
Expand All @@ -16,3 +15,4 @@
(auto-dock))

(call-k-okada)
(sys::exit 0)
4 changes: 3 additions & 1 deletion jsk_fetch_robot/jsk_fetch_startup/euslisp/dock.l
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env roseus

(load "package://jsk_fetch_startup/euslisp/navigation-utils.l")

(ros::roseus "fetch_dock")
(simple-dock)
(exit)
(sys::exit 0)
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
(ros::roseus "fetch_look_at_human")
(fetch-init)
(main *fetch* (send *fetch* :head-rgb))
(sys::exit 0)
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@
(auto-dock))

(go-to-kitchen)
(sys::exit 0)
34 changes: 19 additions & 15 deletions jsk_fetch_robot/jsk_fetch_startup/euslisp/go-to-kitchen.l
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
(ros::roseus "go_to_kitchen")
#!/usr/bin/env roseus

(require :fetch-interface "package://fetcheus/fetch-interface.l")
(load "package://jsk_fetch_startup/euslisp/navigation-utils.l")

(defun go-to-kitchen ()
;; go to kitchen
(send *ri* :speak "go to kitchen.")
(if (go-to-spot "/eng2/7f/room73B2-sink-front1" (make-coords :pos #f(100 -1000 0)))
(progn ;; succeeded to go to kitchen
(unix:sleep 1)
(send *ri* :speak "arrived at kitchen." :wait t)
(unix:sleep 1)
(send *ri* :speak "return to dock." :wait t)
(auto-dock))
(progn ;; failed to go to kitchen
(send *ri* :speak "I could not go to kitchen, so return to dock." :wait t)
(auto-dock))))

(defun main (&key (tweet t) (n-dock-trial 3) (n-kitchen-trial 3) (control-switchbot :api))
(when (not (boundp '*sm*))
(go-to-kitchen-state-machine))
(let ((result-state
(exec-state-machine *sm* `((tweet . ,tweet)
(n-kitchen-trial . ,n-kitchen-trial)
(n-dock-trial . ,n-dock-trial)
(control-switchbot . ,control-switchbot)
(initial-light-on . nil)
(success-go-to-kitchen . nil)
(success-auto-dock . nil))
:hz 2.0)))
(send result-state :name)))

(go-to-kitchen)

(ros::roseus "go_to_kitchen")
(if (main) (unix::exit 0) (unix::exit 1))
9 changes: 9 additions & 0 deletions jsk_fetch_robot/jsk_fetch_startup/euslisp/light-off.l
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env roseus

(require :fetch-interface "package://fetcheus/fetch-interface.l")
(load "package://jsk_fetch_startup/euslisp/navigation-utils.l")

(ros::roseus "light_off")
(fetch-init)
(room-light-off :control-switchbot :api)
(sys::exit 0)
9 changes: 9 additions & 0 deletions jsk_fetch_robot/jsk_fetch_startup/euslisp/light-on.l
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env roseus

(require :fetch-interface "package://fetcheus/fetch-interface.l")
(load "package://jsk_fetch_startup/euslisp/navigation-utils.l")

(ros::roseus "light_on")
(fetch-init)
(room-light-on :control-switchbot :api)
(sys::exit 0)
Loading