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

Boxy melodic update #1

Open
wants to merge 331 commits into
base: noetic-donbot
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
331 commits
Select commit Hold shift + click to select a range
c05e5d1
Merge commit 'refs/pull/202/head' of https://github.com/cram2/cram in…
gaya- Sep 11, 2020
ea60a10
[obj-know+proj-demos+donbot-descr] cleanup for PR #202:
gaya- Sep 11, 2020
c24c7d0
[obj-knowledge] right-side grasp for tray
tlipps Aug 27, 2020
7de61a1
[location-updated-event] rm loose attachments from the robot if objec…
tlipps Aug 27, 2020
8922256
--"--
tlipps Aug 27, 2020
1dff791
[btr-belief] object-loc changed small error rmv
tlipps Sep 6, 2020
ab99be6
[obj-know + pr2-descr] added tray carrying configuration
gaya- Sep 14, 2020
15f8297
Merge commit 'refs/pull/200/head' of https://github.com/cram2/cram in…
gaya- Sep 14, 2020
f8c7ed0
[fd-plans] commented out test deps and make bowl weight 0:
gaya- Sep 14, 2020
b004f68
[rob-int & co] added ROBOT-BASE-LINK predicate
gaya- Sep 15, 2020
5a826ca
[urdf-manip] reduced gripper handle offset
gaya- Sep 15, 2020
f8b5e0c
[giskard] updates for base colliion hint
gaya- Sep 15, 2020
c87d679
MONITORING-JOINT-STATE motion
gaya- Sep 15, 2020
846ff2b
[mobile-pp-plans] moved PARKING-ARMS from atomic to pp
gaya- Sep 15, 2020
28465f2
[joints] PM symbol export
gaya- Sep 15, 2020
f01e193
[pr2-pp-demo] spoon is black and not steel
gaya- Sep 15, 2020
495d7f5
[fd-plans] quick fix for searching plan
gaya- Sep 15, 2020
2939a24
[giskard] springs & tweaks
gaya- Sep 15, 2020
637eb5f
[rob-int & co] GRIPPER-MIN-POS + GRIPPER-CONVERGENCE-DELTA predicates
gaya- Sep 15, 2020
1359af7
[urdf-proj] monitoring motion
gaya- Sep 15, 2020
69867b6
MONITORING-JOINT-STATE action
gaya- Sep 15, 2020
22fb314
[urdf-proj] MONITORING now is implemented as an endless loop
gaya- Sep 15, 2020
fbb9b0c
[btr] new utils LINK-ATTACHED-OBJ-NAMES + OBJ-NAME-ATT-LINKS
gaya- Sep 15, 2020
92ad102
[giskard] detaching all objects from the given link:
gaya- Sep 15, 2020
e2744b4
[mobile-pp-plans + env-manip] monitoring slipping at lifting and pulling
gaya- Sep 15, 2020
5ea4685
feat(main.lisp): Neem generation treats the imagined actions as real …
seba90 Sep 10, 2020
dc82d0e
refactor(neem-generation.launch): Remove knowrob at start
seba90 Sep 10, 2020
8efd6df
refactor(knowrob-action-name-handler.lisp): Update to EASE to SOMA an…
seba90 Sep 10, 2020
a029cb1
refactor(object-interface.lisp): Update to EASE to SOMA and some acti…
seba90 Sep 10, 2020
cb376f5
feat(cloud-logger-query-handler.lisp)
seba90 Sep 10, 2020
38965f5
fix(utils-for-perform): Log parameters of failed actions
seba90 Sep 10, 2020
46c211f
feat(neem-interface.pl): Clean mongo db when logging is stared.
seba90 Sep 10, 2020
dc00c86
[ccl] merging seba90/milestone2020
gaya- Sep 16, 2020
c5e605d
Remove tf publishing during logging
seba90 Sep 16, 2020
f413dd0
[specs] COLLISION-MODE argument for an action desig
gaya- Sep 16, 2020
f8125e7
[mobile-pp-plans] RETRACTING now has a collision mode ALLOW-FINGERS
gaya- Sep 16, 2020
16a31df
[pr2-pp-demo] tweaking
gaya- Sep 16, 2020
6f6938d
[joints] dependencies for monitoring
gaya- Sep 16, 2020
8c31304
[giskard] no more bs hacks for donbot pivoting
gaya- Sep 16, 2020
b506db1
[giskard] decreased timeout again as navigation got faster
gaya- Sep 16, 2020
f6fada8
[giskard] allow-fingers collision mode for arm goals
gaya- Sep 16, 2020
b3d5a54
[giskard] added avoid joint limits to the env manip goals:
gaya- Sep 16, 2020
c8268e9
[urdf-proj] ALLOW-FINGERS in projection will be just like ALLOW-HANDS:
gaya- Sep 16, 2020
bda5b47
[btr-belief] perception noise handling: PR #139:
gaya- Sep 17, 2020
bf452c8
[btr-belief] reimplemented perception noise handling (PR #139):
gaya- Sep 17, 2020
36093e9
[env-manip] added a tiny sleep to the slippage monitoring
gaya- Sep 17, 2020
19aae65
[btr-belief] got rid of the unnecessary warning
gaya- Sep 17, 2020
cd52606
[env-man] Use aabbs for revolute-container costmap.
cpollok Sep 19, 2020
3edd530
Merge commit 'refs/pull/211/head' of https://github.com/cram2/cram in…
gaya- Sep 21, 2020
26c9bfc
Merge branch 'boxy-melodic' of https://github.com/cram2/cram into box…
gaya- Sep 21, 2020
7bc40be
[env-manip] minor for PR #211
gaya- Sep 21, 2020
a4d7c95
[obj-know] cup grasp tweak + bowl destination inside dishwasher
gaya- Sep 21, 2020
d39ee98
[pr2-descr] tiny bit more reachaiblity distance for opening dishwashe…
gaya- Sep 21, 2020
30174b7
[navigation] if navigation fails, try to go with a slower velocity
gaya- Sep 21, 2020
9408f9a
[pr2-pp-demo] tweaked destination poses + cleaning demo minor
gaya- Sep 21, 2020
4e9b2e2
[fd-plans] still trying to fix the searching failure handling
gaya- Sep 21, 2020
9e0add7
[env-manip] minor
gaya- Sep 21, 2020
a543407
[mpp-plans] if torso failure handling fails, just ignore the fialure
gaya- Sep 21, 2020
05aaa86
[obj-know] tweaks for cleaning locations
gaya- Sep 21, 2020
3f2e4f1
[pp-demo+proj-demo] bugfix for object spawning attachments
gaya- Sep 21, 2020
10fe1ba
[giskard] added a check-goal-achieved function for environment manipu…
gaya- Sep 21, 2020
e52f41f
[giskard] committed a breakpoint grr
gaya- Sep 22, 2020
735c6a1
[btr-belief] tweaking belief state consistency checking
gaya- Sep 23, 2020
5d75a27
[fd-plans] use SETF when resetting designators
gaya- Sep 23, 2020
81c3d7c
[env-manip] fail if reaching fails
gaya- Sep 23, 2020
11605cd
[env-manip] tweaking gripper handle offset
gaya- Sep 23, 2020
f1b118f
failure handling for arm parking motion
gaya- Sep 23, 2020
3270ea0
[man-int + obj-know + tf] if object has a tf prefix, use it for lookups
gaya- Sep 23, 2020
b5044d7
[mpp + env-manip] moved looking out of PAR because of giskard
gaya- Sep 23, 2020
71d7de8
[specs]
gaya- Sep 23, 2020
1cfac5c
[man-int] some more rotation matrices
gaya- Sep 23, 2020
222b450
[obj-know] cup to clean goes into dishwasher + tweaking
gaya- Sep 23, 2020
2fa283f
[mpp] minor
gaya- Sep 23, 2020
4d7f24c
[pr2-pp-demo] when cleanig dont grasp the cup from top
gaya- Sep 23, 2020
25363ee
[giskard] update object pose after dropping it after detaching
gaya- Sep 23, 2020
d995618
[giskard] more different goal constructors
gaya- Sep 23, 2020
df7277b
[giskard][env-manip] follow hand with gaze + allow collisions with al…
gaya- Sep 23, 2020
013eb96
[giskard] TRY-HARDER mode for arm parking
gaya- Sep 23, 2020
6c204e8
[desig]Making reset generic and clearing the cache for location desig…
amar-fayaz Sep 25, 2020
b613461
[fd-tests]Setting boundaries for costmap
amar-fayaz Sep 25, 2020
836c1f8
[fd-tests]Adding a test for designator error for searching
amar-fayaz Sep 25, 2020
c66f5ae
[env-man] Fix hack for handle-axis by inferring rotation from URDF.
cpollok Sep 25, 2020
cf5e8f0
[env-man] Pass environment instead of magic variable.
cpollok Sep 26, 2020
1acaa1c
[env-man] Remove invert hack and fix gripper rotation in revolute tra…
cpollok Sep 26, 2020
eae50d4
[spatial-cm]Fixed the support aligned orientation calculation and add…
amar-fayaz Oct 2, 2020
edf79cc
[fd-plan] Fixing the error numbers for fetch and deliver tests.
amar-fayaz Oct 6, 2020
3044437
moved robot description packages into one place
gaya- Dec 18, 2020
7e8cb78
[cm+gauss] added VISIBILITY-ORIENTATION-OFFSET predicate
gaya- Dec 18, 2020
26b6aea
ported the Donbot retail demo to the Kukabot
gaya- Jan 13, 2021
aca546a
ported kukabot demo to Simon's randomly generated store scan URDF
gaya- Jan 15, 2021
d3ccd90
[demos] kukabot retail demo tweaks
gaya- Jan 18, 2021
afe4e6c
[fd-plans] the reachability costmap should have visibility as well af…
gaya- Jan 18, 2021
af3dd2e
[proj-demos] more tweaks for kukabot demo
gaya- Jan 18, 2021
21fb361
[demos] kukabot demo tweaks for real scanned store
gaya- Jan 21, 2021
08b0378
[ralf-cm] added Sebastian's costmap stuff
gaya- Sep 25, 2020
b9d31e1
[spec] new spec for location desigs
gaya- Jan 23, 2021
ab8d843
[ralf-costmaps] integrated the costmaps for kukabot retail
gaya- Jan 23, 2021
388e927
[cm] made rviz visualization also use heatmap colors
gaya- Jan 24, 2021
5581899
[tf] marker publisher now uses a global publisher object
gaya- Jan 24, 2021
c02f3f2
[obj-knowledge] tweak for kukabot back placement pose
gaya- Jan 24, 2021
455245e
[proj-demos] visualizing items in rviz
gaya- Jan 24, 2021
163191f
[ralf_cm] integrated visibility costmaps and refactored
gaya- Jan 24, 2021
73f3bc3
[env-man] Add distance clipping to the container-state goal. Also cha…
cpollok Sep 24, 2020
d075a00
[env-man] Add note to clip-distance for future developers.
cpollok Sep 24, 2020
3f26808
[btr-belief] added ordering id for env manip events
gaya- Sep 24, 2020
e2d5c31
[urdf-proj] set the tf timeout to 0.1 in projection mode:
gaya- Sep 24, 2020
63087bf
[env-manip] more tweaking
gaya- Sep 24, 2020
535138b
[mpp] when retracting ALLOW-HAND afterall:
gaya- Sep 24, 2020
caa8090
[tf] TF-FRAME-CONVERGED now returns the error as values as well
gaya- Sep 24, 2020
1167108
[obj-know] tweaking locations, mostly inside dishwasher
gaya- Sep 24, 2020
d112dc6
[pr2ppdemo] minor tweaking
gaya- Sep 24, 2020
e9821c5
[giskard]
gaya- Sep 24, 2020
7129ba4
[env-manip] succeed if failed 1 second before succeed
gaya- Sep 24, 2020
d06d69e
[env-manip] added an offset for closing
gaya- Sep 25, 2020
a97bbf1
[obj-know] final hopefully twick for dishwasher locations
gaya- Sep 25, 2020
0224550
[giskard]
gaya- Sep 25, 2020
ed12d92
[pr2-descr] put narroww stereo camera as first camera frame
gaya- Sep 25, 2020
988029e
[desig]Making reset generic and clearing the cache for location desig…
amar-fayaz Sep 25, 2020
5453faa
[proj-demos] made retail-demo faster
gaya- Jan 25, 2021
fea11a9
Merge commit 'refs/pull/214/head' of https://github.com/cram2/cram in…
gaya- Jan 25, 2021
e75538e
[proj-demos] in retail demo move robot out of the wall at start
gaya- Jan 26, 2021
9713a55
[btr] more customization for coordinate frame visualizaiton
gaya- Jun 7, 2021
f8af641
[btr-world-tut] setup is working again
gaya- Jun 7, 2021
222ff64
[proj-demos] launch file for kukabot in the kitchen hehe
gaya- Jun 7, 2021
5fa91a6
[btr] make robot and environment urdfs half-transparent
gaya- Mar 29, 2022
97b6820
[3rd_party] Updated CFFI to the newest version
gaya- Mar 25, 2022
6df7103
various bugfixes from the razor-melodic branch:
gaya- Mar 29, 2022
89cefc5
Revert "[btr] make robot and environment urdfs half-transparent"
gaya- Mar 30, 2022
c55bba1
[btr] transparent robot feature was already there, enabled it.
gaya- Mar 30, 2022
d745d24
[spatial-cm] added a THRESHOLD property to spatial relation locations
gaya- Mar 31, 2022
2c7f3e3
[env-manip] fixed a bug in the orientation generator:
gaya- Mar 31, 2022
85d4e3c
[cm] exported ANGLE-TO-POINT-DIRECTION symbol.
gaya- Mar 31, 2022
a47c6a7
[mobile-pp-plans] RELEASING now infers GRIPPER when not given and PUT…
gaya- Mar 31, 2022
2b55521
[fd-plans] environment manipulation now samples through arms and rele…
gaya- Mar 31, 2022
902f1de
[demos] fixes for the cram_projection_demos here and there.
gaya- Mar 31, 2022
6d69753
minor
gaya- Mar 31, 2022
d175c38
[man-int + as-demo] fixed plane on vertical holder rotation
gaya- Apr 1, 2022
c1d55b4
[btr + bs] loose attachments should only get destroyed on object pick…
gaya- Apr 5, 2022
311180c
[obj-know + proj-demos] tweaked demo object and grasp poses
gaya- Apr 5, 2022
62144a4
[btr] added attached-object as generic in objects.lisp and implemente…
tlipps Oct 20, 2020
556c040
[btr] integrated (btr:attached-objects item other-item) for robot col…
tlipps Oct 20, 2020
73da25b
[boxy-demo] attaching holder-top-wing and top-wing at the beginning
tlipps Oct 20, 2020
357b5a1
[boxy-demo] hardcoded: changed driving positions so the robot doesnt …
tlipps Oct 26, 2020
1c33fd2
[btr] items: more readable code for object-attached
tlipps Oct 26, 2020
e34e938
[btr] minor refactoring for PR#220
gaya- Apr 5, 2022
f59213b
[man-int + proj-demo + obj-know] fixes for assembly demo poses
gaya- Apr 5, 2022
7e2a44b
[btr] minor bugfix for PR#220
gaya- Apr 6, 2022
da8beda
[pr2-pp-demo] minor spawn pose adjustments in milestone demo
gaya- Apr 6, 2022
6f7517a
[proj-demos] minor rearrangement refactoring
gaya- Apr 6, 2022
4831743
[spatial-cm] fixed collision pose validator
gaya- Apr 6, 2022
d31b0e7
[btr-utils] default color for the milk object
gaya- Apr 6, 2022
c924c8b
Merge commit 'refs/pull/216/head' of github.com:cram2/cram into boxy-…
gaya- Apr 6, 2022
d8df717
minor tweaks
gaya- Apr 6, 2022
26b801d
Merge commit 'refs/pull/215/head' of github.com:cram2/cram into boxy-…
gaya- Apr 6, 2022
7038415
[env-manip] minor fixes for PR#215
gaya- Apr 6, 2022
3f0efe3
[donbot-descr] visibility and reachability offsets should be the same:
gaya- Apr 6, 2022
f622672
[obj-know] assembly bolt grasp adjustment for donbot:
gaya- Apr 6, 2022
e57cd22
[obj-know] cereal additional grasp for Donbot:
gaya- Apr 6, 2022
0195646
[donbot-descr] adjustments for new gripper and longer reachability:
gaya- Apr 6, 2022
21015e6
[proj-demos] brought donbot urdf here because it keeps changing
gaya- Apr 6, 2022
3638569
[proj-demos] minor demo tweaks
gaya- Apr 6, 2022
ab66f26
[fd-plans] more relocation retries for delivering:
gaya- Apr 6, 2022
3528e05
[cm] minor bugfix in costmap sampling:
gaya- Apr 14, 2022
aa40175
[btr] visualizing costmap samples is now a box not a sphere.
gaya- Apr 14, 2022
8a889fa
[fd-plans] flipped failure handling for container manipulation:
gaya- Apr 21, 2022
9215f6e
[spatial-cm] removed padding on jokkmokk table
gaya- Apr 21, 2022
3c6fef1
[obj-know] fixed the bolt grasp stuff again
gaya- Apr 21, 2022
5862c6e
[btr] visualization axes now have a parameter for default length
gaya- Apr 26, 2022
b55467d
[btr] tried to apply alpha value to the color of items:
gaya- Apr 26, 2022
6f3faf5
[urdf-proj] make the arm goal vis arrows smaller
gaya- Apr 26, 2022
9eb6e00
[obj-knowledge] minor
gaya- Apr 26, 2022
34a9571
[btr] bugfix for alpha value of robot and item models
gaya- Apr 29, 2022
900810c
added Tiago description
gaya- May 2, 2022
37e35f5
[proj_demos] added Tiago's urdf launch file
gaya- May 2, 2022
a157e29
PTU inverse kinematics are much more robot-independent now
gaya- May 2, 2022
83c71d6
[kdl_ik_service] suppress errors of the xml parser
gaya- May 2, 2022
99e9c82
[tiago-descr] tweaking
gaya- May 2, 2022
2945d04
[proj-demos] now support Tiago!
gaya- May 2, 2022
45e2e6b
[fd-plans] only help with base when looking if look location is not o…
gaya- May 3, 2022
5cc66fc
[proj-reason] bugfix in environment manipulation check:
gaya- May 3, 2022
0e4ea29
[spec] OF property of location designators:
gaya- May 3, 2022
bbc3258
Merge branch 'boxy-melodic' of github.com:cram2/cram into boxy-melodic
gaya- May 3, 2022
7f4e57c
[man-int] better LOCATION-ALWAYS-REACHABLE and fixed object pose in g…
gaya- May 3, 2022
59d33a5
[obj-know] Tiago is short, so reduced pregrasp offset of BOWL on tabl…
gaya- May 3, 2022
98b7813
[obj-know] added two more poses in basket for placing the dishwashertabs
gaya- May 3, 2022
9883ce3
[proj-demos] lowered the kitchen island in assembly demo for Tiago, h…
gaya- May 3, 2022
91dee12
[proj-demos] in retail demo basket stuff for Tiago
gaya- May 3, 2022
d8dd232
[cram-ik] ensure that the upper limit of torso is always sampled
gaya- May 3, 2022
91939cc
[tiago-descr] joint configs and other tweaks
gaya- May 3, 2022
51facff
[btr] bugfix in applying joint state to virtual links
gaya- May 4, 2022
8f0e871
[btr-belief] took out world spawning stuff into its own function
gaya- May 4, 2022
16741d6
[fd-plans] in environment manipulation reset location designator betw…
gaya- May 4, 2022
1c92ebc
[cma] moved AVERAGE from btr-belief here
gaya- May 4, 2022
e6e137e
[proj-demos] in assembly demo using the new btr-belief:spawn-world to…
gaya- May 4, 2022
0adf39e
[proj-demos] varying household environment poses to get a new environ…
gaya- May 4, 2022
a74e152
[kuka-descr + donbot-descr] little parameter tweaks
gaya- May 4, 2022
d459979
[spatial-cm] multipe fixes for spatial relations:
gaya- May 5, 2022
6584236
[mpp-plans+env-manip-plans+man-int] don't look before manipulating if…
gaya- May 5, 2022
89838d9
[proj-demo] added a new environment based on Jonas's old shelves stuff
gaya- May 5, 2022
47098b1
[proj-demos] tweaked the offset household environment
gaya- May 5, 2022
126029f
[kukabot-descr] disabling visibility costmaps for this guy as his cam…
gaya- May 5, 2022
62e1968
[spatial-cm] reduced the padding for CUP in spatial relations
gaya- May 6, 2022
7d8c7f5
minor
gaya- May 6, 2022
87e2109
[spatial-cm] finally fixed the bug in height generators... again...:
gaya- May 6, 2022
1f81cec
[mpp-plans] adding TARGET-OBJECT-TRANSFORM to resolved PLACING design…
gaya- May 6, 2022
2dc688e
[mpp-plans] do not ignore manipulation failures of PUTTING action:
gaya- May 6, 2022
757654a
[obj-know] added environment metadata for the new STORAGE environment
gaya- May 6, 2022
a4eceec
[obj-know] reduced CUTLERY lift offset for shelves and introduced til…
gaya- May 6, 2022
47dfbe2
[obj-know] fixed the TOP grasp offsets of DISH-WASHER-TABS and BALEA-…
gaya- May 6, 2022
b9a5239
[proj-demos] centralized STORAGE environment and removed highest and …
gaya- May 6, 2022
ba60e8e
[proj-demos] added new STORAGE demo and consolidated spawning code of…
gaya- May 6, 2022
5152a84
[btr-belief] amazing new util function for snapping objects onto robo…
gaya- May 6, 2022
ab23638
[proj-demo] in storage demo got rid of AXIS-ALIGNED orientation:
gaya- May 6, 2022
6dc62de
[proj-demos] minor refactoring of restricted area costmaps
gaya- May 9, 2022
6fc84b6
[btr] prettified the static plane:
gaya- May 9, 2022
67f6651
[btr-belief] prettifications of the world state:
gaya- May 9, 2022
eb6d90f
[btr] fixed mesh origins to comply with our convention
gaya- May 11, 2022
a0f5c3e
[btr-utils] default colors for some btr resource items
gaya- May 11, 2022
667baf7
[man-int] new rotation matrix
gaya- May 11, 2022
befa596
[gauss-cm] in REACHABLE-FROM don't use a gaussian:
gaya- May 11, 2022
ae344e9
[obj-know] grasps and other knowledge for some new objects
gaya- May 11, 2022
27de54f
[proj-demos] new objects for the storage demo and other minor stuff
gaya- May 11, 2022
c77e585
[bullet-vis] playing around with a text ui
gaya- May 12, 2022
de73659
[cpoe + btr-belief] object-placed occasion, because object-at-locatio…
gaya- May 12, 2022
3ec74ac
[fd-plans] when placing only sample from REACHABLE-FROM locations + u…
gaya- May 12, 2022
a50424f
[obj-know] minor adjustments for grasp poses of new storage-demo objects
gaya- May 12, 2022
040fb1a
[proj-demo] minor
gaya- May 12, 2022
8ed0eab
WAITING motion
gaya- May 13, 2022
9e71d66
[mpp-plans + spec] WAITING action
gaya- May 13, 2022
78f7b7d
simple one-handed pouring drafts for thesis evaluation
gaya- May 16, 2022
d509c51
20.04 fixes
mohammadkhoshnazarr Jun 7, 2022
6ef7dd9
xacro.py -> xacro
gaya- Jun 7, 2022
ac7aa14
[proj-demos] added apartment launch file
gaya- Jun 24, 2022
a46b3bf
[btr + cl_png] now possible to generate pngs from robot / top view or…
gaya- Jun 24, 2022
5500374
[phys-utils] reset cffi default compiler from g++ back to gcc because…
gaya- Jul 1, 2022
fb66ab5
[gauss-cm] don't use costmaps for reachable-from if the pose has ATTA…
gaya- Jul 4, 2022
34cef08
[proj-reason] better debug prints
gaya- Jul 4, 2022
2be3ea8
[pr2-pp-demo] fixed some hard-coded poses in the demo
gaya- Jul 4, 2022
240bb3a
[gauss-cm] also don't apply REACHABLE-FROM costmap for locations with…
gaya- Jul 4, 2022
576ff40
[urdf-proj] visualize looking pose as a very short axis object, make …
gaya- Jul 4, 2022
3004a2a
[urdf-proj] looking pose visualization a tiny bit bigger to not look …
gaya- Jul 4, 2022
d9ce5c9
[obj-know] cup in dishwasher offset resulting in postgrasp collisions…
gaya- Jul 4, 2022
0b24c52
[proj-reason] fail when pregrasp or postgrasp pose results in collisi…
gaya- Jul 4, 2022
11059bf
[proj-reason] consider gripper opening distance when checking for col…
gaya- Jul 4, 2022
69a8aa3
[obj-know] tweaks for the retail demo
gaya- Jul 4, 2022
bec045c
[btr-belief] bugfix for OBJECT-IN-HAND: four-argument version should …
gaya- Jul 4, 2022
d9d7c52
[jupyter] added a rosinstall for common-lisp-jupyter and its deps
gaya- Mar 25, 2022
1b9bbaf
[jupyter] moved rosinstall to the jupyter directory
gaya- Jul 6, 2022
9dbc45d
[urdf-proj] comment out unused variable to get rid of style warning
gaya- Jul 6, 2022
3bcaf59
[man-int + obj-know + proj-demos] added ikea big and small plates fro…
gaya- Jul 6, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion cram_3d_world/cl_bullet_vis/cl-bullet-vis.asd
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
cl-glx
trivial-garbage
alexandria
cram-physics-utils)
cram-physics-utils
cram-math)
:components
((:module "src"
:components
Expand Down
100 changes: 100 additions & 0 deletions cram_3d_world/cl_bullet_vis/src/bullet-world-window.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,104 @@
(when (frame-rate w)
(glut:enable-tick w (truncate (* (/ (frame-rate w)) 1000)))))

(defvar *draw-ui* nil)
(defvar *draw-textured-number* nil)
(defvar *text-to-draw* "")

(defun draw-ui (window)
(when *draw-ui*
(gl:disable :lighting)
(gl:with-pushed-matrix
(let ((text-point (cl-transforms:transform-point
(camera-transform window)
(cl-transforms:make-3d-vector 3.0 0 1.3))))
(gl:translate (cl-transforms:x text-point)
(cl-transforms:y text-point)
(cl-transforms:z text-point)))
(gl:color 1 0 0 1.0)
(%gl:raster-pos-3f 0.0 0.0 0.0)
(glut:bitmap-string glut:+bitmap-times-roman-24+ *text-to-draw*)
(glut:bitmap-string glut:+bitmap-times-roman-24+ "Red")
(when *draw-textured-number*
;; (print (gl:get* :current-raster-position))
;; (print (gl:get* :current-raster-position-valid))
(let ((text-pose (cl-transforms:transform-pose
(camera-transform window)
(cl-transforms:make-pose
(cl-transforms:make-3d-vector 3.0 0 1.3)
(cl-transforms:make-identity-rotation)))))
;; (gl:translate (cl-transforms:x (cl-transforms:origin text-pose))
;; (cl-transforms:y (cl-transforms:origin text-pose))
;; (cl-transforms:z (cl-transforms:origin text-pose)))
(gl:translate 0.5 0 0)
(multiple-value-bind (axis angle)
(cl-transforms:quaternion->axis-angle (cl-transforms:orientation text-pose))
(gl:rotate (cma:radians->degrees angle)
(cl-transforms:x axis) (cl-transforms:y axis) (cl-transforms:z axis))
(gl:rotate 90 0 1 0)
(gl:rotate -90 0 0 1)))
(gl:enable :lighting)
(gl:color 1 0 0 1.0)
(gl:scale 0.1 0.1 0.1)
;; (glut:solid-cube 2.0)
(gl:with-pushed-attrib (:texture-bit :enable-bit)
(multiple-value-bind (texture-handle new?)
(cl-bullet-vis:get-texture-handle window (gensym))
(gl:bind-texture :texture-2d texture-handle)
;; (print new?)
(when new?
(gl:tex-env :texture-env :texture-env-mode :modulate)
(gl:tex-parameter :texture-2d :texture-min-filter :linear-mipmap-linear)
(gl:tex-parameter :texture-2d :texture-mag-filter :linear)
(gl:tex-parameter :texture-2d :texture-wrap-s :repeat)
(gl:tex-parameter :texture-2d :texture-wrap-t :repeat)
(glu:build-2d-mipmaps
:texture-2d 4 16 16 :rgba :float
(texture-str->bitmap
(concatenate
'string
"xxxxxxxxxxxxxxxx"
"x x"
"x xx x"
"x x x x"
"x x x x"
"x x x x"
"x x x"
"x x x"
"x x x"
"x x x"
"x x x"
"x x x"
"x xxxxxxx x"
"x x"
"x x"
"xxxxxxxxxxxxxxxx")
#\o #\Space #\x '(1 1 1 1)))))
(gl:enable :texture-2d)
(gl:disable :cull-face)
(gl:disable :lighting)
(gl:with-primitive :quads
(gl:normal 0 0 1)
(gl:tex-coord 0.0 0.0)
(gl:vertex -0.5 -0.5)
(gl:tex-coord 1.0 0.0)
(gl:vertex 0.5 -0.5)
(gl:tex-coord 1.0 1.0)
(gl:vertex 0.5 0.5)
(gl:tex-coord 0.0 1.0)
(gl:vertex -0.5 0.5)))))
(gl:with-pushed-matrix
(let ((text-point (cl-transforms:transform-point
(camera-transform window)
(cl-transforms:make-3d-vector 3.0 -0.2 1.3))))
(gl:translate (cl-transforms:x text-point)
(cl-transforms:y text-point)
(cl-transforms:z text-point)))
(gl:color 0 1 0 1.0)
(%gl:raster-pos-3f 0.0 0.0 0.0)
(glut:bitmap-string glut:+bitmap-times-roman-24+ "Green"))
(gl:enable :lighting)))

(defmethod glut:display ((window bullet-world-window))
(with-rendering-lock
(gl:matrix-mode :projection)
Expand Down Expand Up @@ -98,6 +196,8 @@
(dolist (obj transparent-objects)
(draw window obj))
(%gl:depth-mask t)))
;; Draw UI texts
(draw-ui window)
;; When we are moving around, draw a little yellow disk similar to
;; that one RVIZ draws.
(when (or (eq (motion-mode window) :rotate)
Expand Down
99 changes: 57 additions & 42 deletions cram_3d_world/cl_bullet_vis/src/math-function-visualization.lisp
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
;;;
;;; Copyright (c) 2010, Lorenz Moesenlechner <[email protected]>
;;; All rights reserved.
;;;
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions are met:
;;;
;;;
;;; * Redistributions of source code must retain the above copyright
;;; notice, this list of conditions and the following disclaimer.
;;; * Redistributions in binary form must reproduce the above copyright
;;; notice, this list of conditions and the following disclaimer in the
;;; documentation and/or other materials provided with the distribution.
;;; * Neither the name of the Intelligent Autonomous Systems Group/
;;; Technische Universitaet Muenchen nor the names of its contributors
;;; may be used to endorse or promote products derived from this software
;;; Technische Universitaet Muenchen nor the names of its contributors
;;; may be used to endorse or promote products derived from this software
;;; without specific prior written permission.
;;;
;;;
;;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
;;; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
;;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
Expand All @@ -38,33 +38,43 @@
(cl-transforms:make-3d-vector 0 0 0)
(cl-transforms:make-quaternion 0 0 0 1)))
(fun :initarg :function :reader fun)
(height-fun :initarg :height-function :reader height-fun :initform (constantly 0.0))
(alpha :initarg :alpha :reader alpha :initform 1.0)
(color-fun :initarg :color-fun :reader color-fun :initform (constantly (list 0.0 0.0 0.6)))))

(defmethod gl-object-transparent ((obj math-function-object))
(< (alpha obj) 1.0))

(defmethod draw ((context gl-context) (obj math-function-object))
(let ((points (make-hash-table :test 'equal))
(let ((value-points (make-hash-table :test 'equal))
(heights (make-hash-table :test 'equal))
(colors (make-hash-table :test 'equal)))
(flet ((get-point (x y)
(flet ((get-value (x y)
(with-slots (fun) obj
(multiple-value-bind (old-value found?)
(gethash (list x y) points)
(gethash (list x y) value-points)
(if found?
old-value
(let ((new-value (funcall fun x y)))
(setf (gethash (list x y) points)
(setf (gethash (list x y) value-points)
(when (numberp new-value)
new-value)))))))
(get-height (x y)
(with-slots (height-fun) obj
(multiple-value-bind (old-value found?)
(gethash (list x y) heights)
(if found?
old-value
(let ((new-value (funcall height-fun x y)))
(setf (gethash (list x y) heights)
(when (numberp new-value)
(cl-transforms:make-3d-vector x y new-value))))))))
(get-color (vec)
(let ((x (cl-transforms:x vec))
(y (cl-transforms:y vec)))
(with-slots (color-fun) obj
(or (gethash (list x y) colors)
(setf (gethash (list x y) colors)
(append (subseq (funcall color-fun vec) 0 3)
(list (alpha obj))))))))
new-value)))))))
(get-color (x y value)
(with-slots (color-fun) obj
(or (gethash (list x y) colors)
(setf (gethash (list x y) colors)
(append (subseq (funcall color-fun value) 0 3)
(list (alpha obj)))))))
(vertex (vec &optional normal)
(let ((normal (cl-transforms:v*
normal
Expand All @@ -86,34 +96,39 @@
(gl:mult-matrix (pose->gl-matrix pose))
(loop for x from (- (/ width 2)) to (- (/ width 2) step-size) by step-size do
(loop for y from (- (/ height 2)) to (- (/ height 2) step-size) by step-size do
(let ((middle-pt (get-point (+ x (/ step-size 2))
(+ y (/ step-size 2)))))
(when middle-pt
(let* ((value (cl-transforms:z middle-pt))
(pt-1 (cl-transforms:make-3d-vector
x y value))
(pt-2 (cl-transforms:make-3d-vector
(+ x step-size) y value))
(pt-3 (cl-transforms:make-3d-vector
x (+ y step-size) value))
(pt-4 (cl-transforms:make-3d-vector
(+ x step-size) (+ y step-size) value))
(n-1 (cl-transforms:cross-product
(cl-transforms:v- pt-2 pt-1)
(cl-transforms:v- pt-4 pt-1)))
(n-2 (cl-transforms:cross-product
(cl-transforms:v- pt-4 pt-1)
(cl-transforms:v- pt-3 pt-1))))
(let* ((pt-middle-x (+ x (/ step-size 2)))
(pt-middle-y (+ y (/ step-size 2)))
(value (get-value pt-middle-x pt-middle-y)))
(when value
(let* ((color
(get-color pt-middle-x pt-middle-y value))
(height
(get-height pt-middle-x pt-middle-y))
(pt-1
(cl-transforms:make-3d-vector
x y height))
(pt-2
(cl-transforms:make-3d-vector
(+ x step-size) y height))
(pt-3
(cl-transforms:make-3d-vector
x (+ y step-size) height))
(pt-4
(cl-transforms:make-3d-vector
(+ x step-size) (+ y step-size) height))
(n-1
(cl-transforms:cross-product
(cl-transforms:v- pt-2 pt-1)
(cl-transforms:v- pt-4 pt-1)))
(n-2
(cl-transforms:cross-product
(cl-transforms:v- pt-4 pt-1)
(cl-transforms:v- pt-3 pt-1))))
(gl:with-primitive :triangles
(apply #'gl:color (get-color pt-1))
(apply #'gl:color color)
(vertex pt-1 n-1)
(apply #'gl:color (get-color pt-2))
(vertex pt-2 n-1)
(apply #'gl:color (get-color pt-4))
(vertex pt-4 n-1)
(apply #'gl:color (get-color pt-1))
(vertex pt-1 n-2)
(apply #'gl:color (get-color pt-4))
(vertex pt-4 n-2)
(apply #'gl:color (get-color pt-3))
(vertex pt-3 n-2)))))))))))))
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
;;; Copyright (c) 2020, Amar Fayaz <[email protected]>
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions are met:
;;;
;;; * Redistributions of source code must retain the above copyright
;;; notice, this list of conditions and the following disclaimer.
;;; * Redistributions in binary form must reproduce the above copyright
;;; notice, this list of conditions and the following disclaimer in the
;;; documentation and/or other materials provided with the distribution.
;;; * Neither the name of the Intelligent Autonomous Systems Group/
;;; Technische Universitaet Muenchen nor the names of its contributors
;;; may be used to endorse or promote products derived from this software
;;; without specific prior written permission.
;;;
;;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
;;; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
;;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
;;; ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
;;; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
;;; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
;;; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
;;; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
;;; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
;;; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
;;; POSSIBILITY OF SUCH DAMAGE.

(defsystem cram-btr-spatial-relations-costmap-tests
:author "Amar Fayaz"
:license "BSD"
:depends-on (roslisp
lisp-unit

cram-language
cram-executive
cram-designators
cram-prolog
cram-projection
cram-occasions-events

cram-common-failures
cram-mobile-pick-place-plans
cram-object-knowledge

cram-physics-utils ; for reading "package://" paths
cl-bullet ; for handling BOUNDING-BOX datastructures
cram-bullet-reasoning
cram-bullet-reasoning-belief-state
cram-bullet-reasoning-utilities

cram-location-costmap
cram-btr-visibility-costmap
cram-btr-spatial-relations-costmap
cram-robot-pose-gaussian-costmap
cram-occupancy-grid-costmap

cram-urdf-projection ; for with-simulated-robot
cram-urdf-projection-reasoning ; to set projection reasoning to T
cram-fetch-deliver-plans
cram-urdf-environment-manipulation

cram-pr2-description)
:components
((:module "tests"
:components
((:file "package")
(:file "orientation-tests" :depends-on ("package"))))))
Loading