-
Notifications
You must be signed in to change notification settings - Fork 55
feat: redesign rai_perception API with tiered structure and improve 3D gripping point detection #750
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
Open
Juliaj
wants to merge
36
commits into
main
Choose a base branch
from
jj/feat/3dpipe_and_usability
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: redesign rai_perception API with tiered structure and improve 3D gripping point detection #750
Changes from 31 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
23cf04d
Merge changes from branch feat/debug_3dpipe
Juliaj 7142aa5
Add redesign proposal for api usability
Juliaj f4abec9
Code refactoring to improve api usability
Juliaj ae39909
Revert changes in rai_sim and bump up the version
Juliaj d23c255
Update manipulation demo
Juliaj a03ed63
Merge branch 'main' into jj/feat/3dpipe_and_usability
Juliaj 09674aa
Refector code to use ROS2ServiceError and ROS2ParameterError
Juliaj 1918e6b
Handle exception in detection and segment service
Juliaj 31fc1ba
Update document
Juliaj e4e1925
Fix the failing tests
Juliaj 0d55ea9
Fix the link in the docs
Juliaj 5d200fe
Refactor service_utils and topics_utils to use ROS2 APIs and add more…
Juliaj 4af6d1b
Add a test for PARAMETER_BYTE_ARRAY
Juliaj 2dc2e95
Remove redundant doc
Juliaj 8e34696
Fix the doc link
Juliaj 2febfad
Merge branch 'main' into jj/feat/3dpipe_and_usability
Juliaj 344f266
Support enable_legacy_service_names to reduce migration cost
Juliaj cd02864
Set timeout for services and tools
Juliaj 6ce5eca
Switch to use encoding-aware depth conversion
Juliaj b170cd0
Address review feedback from coderabbitai
Juliaj f4bc59b
Consolidate the manipulation demo agent creation code
Juliaj 55089f0
Address coderabbitai minor comments
Juliaj 244b095
Address some of coderabbitai nitpicking comments
Juliaj 7f5e01e
Increase test coverage and fix flakey tests
Juliaj 7a21c08
Fix unit test failure (segfault) on Humble
Juliaj a1aa532
Simplify get_object_gripping_points description and enable streamlit …
Juliaj 04cf7ee
Adjust tool name and descripton to match the v1 tool behavior for man…
Juliaj 853b719
Update README and add warning if both tools are registered
Juliaj 0311f6e
Fix segfault from test_topic_tools.py on humble
Juliaj d2a5f21
Update follow-ups.md
Juliaj 3bb3d12
Add migration guide
Juliaj c77b065
Merge branch 'main' into jj/feat/3dpipe_and_usability
Juliaj bed82a3
Remove unused PerceptionAlgorithmError
Juliaj 03eb766
Address review feedback to remove unused exceptions and clean up migr…
Juliaj 5cf4bf5
Version bump
Juliaj 64d74fd
Merge remote-tracking branch 'origin/main' into jj/feat/3dpipe_and_us…
Juliaj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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,37 @@ | ||
| # Copyright (C) 2025 Robotec.AI | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
|
|
||
| import logging | ||
| from typing import List | ||
|
|
||
| from langchain_core.messages import BaseMessage, HumanMessage | ||
| from manipulation_common import create_agent | ||
|
|
||
| logger = logging.getLogger(__name__) | ||
|
|
||
|
|
||
| def main(): | ||
| agent, _ = create_agent(version="v1") | ||
| messages: List[BaseMessage] = [] | ||
|
|
||
| while True: | ||
| prompt = input("Enter a prompt: ") | ||
| messages.append(HumanMessage(content=prompt)) | ||
| output = agent.invoke({"messages": messages}) | ||
| output["messages"][-1].pretty_print() | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| main() |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.