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

chore: cleanup #149

Merged
merged 18 commits into from
Aug 20, 2024
Merged

chore: cleanup #149

merged 18 commits into from
Aug 20, 2024

Conversation

maciejmajek
Copy link
Member

@maciejmajek maciejmajek commented Aug 19, 2024

Purpose

Cleanup

Proposed Changes

Features:

  • Extended import tests for all rai ROS 2 python packages
  • CI now installs optional python dependencies

Chores:

  • Removed deprecated scenario_engine
  • Removed communication module, moved ros_communication content to tools.utils
  • Removed document module, renamed and moved loader to apps folder
  • Merged tool_runner utility into rai.tools.utils
  • Removed deprecated tools (cat_agri tools, mock tools etc)

Issues

Testing

  • create_robots_whoami ✅
  • streamlit gui ✅

@maciejmajek maciejmajek marked this pull request as ready for review August 19, 2024 20:31
@maciejmajek maciejmajek mentioned this pull request Aug 19, 2024
src/rai/rai/tools/ros/native.py Outdated Show resolved Hide resolved
Comment on lines +99 to +112
if vendor == "openai":
return [
{
"type": "image_url",
"image_url": {
"url": f"data:image/jpeg;base64,{image}",
},
}
for image in images
]
else:
raise ValueError(f"Vendor {vendor} not supported")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Add an Issue for covering more vendors, mark Good first issue.

@@ -68,6 +68,7 @@ class PubRos2MessageToolInput(BaseModel):

# --------------------- Tools ---------------------
class Ros2BaseTool(BaseTool):
# TODO: Make the decision between rclpy.node.Node and RaiNode
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: using RaiNode here causes cicrular import error

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, had that problem. Importing under

if TYPECHECKING:
 import ... RaiNode
 
# and then
node: "rclpy.node.Node | RaiNode"

Does not work either. Nonetheless RaiNode is better suited here.

@maciejmajek maciejmajek merged commit e0cff74 into development Aug 20, 2024
2 checks passed
@maciejmajek maciejmajek deleted the chore/cleanup branch August 20, 2024 09:41
rachwalk added a commit that referenced this pull request Aug 22, 2024
Co-authored-by: Kajetan Rachwał <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants