-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathtest.sh
More file actions
55 lines (48 loc) · 1.58 KB
/
Copy pathtest.sh
File metadata and controls
55 lines (48 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# Copyright (C) 2026 Advanced Micro Devices, Inc. All rights reserved.
# SPDX-License-Identifier: MIT
set -e
echo "=========================================="
echo "RAI Framework Test"
echo "=========================================="
# Source ROS environment (ROS_DISTRO set by ros package)
if [ -n "$ROS_DISTRO" ]; then
source /opt/ros/${ROS_DISTRO}/setup.bash
echo "ROS 2 ${ROS_DISTRO} environment sourced"
else
echo "Warning: ROS_DISTRO not set. Build with: ryzers build ros rai"
fi
# Test RAI core import
echo ""
echo "Testing RAI core import..."
PYTHONWARNINGS=ignore python3 -c "
from rai.agents import AgentRunner, ReActAgent
from rai.initialization import get_llm_model
print('RAI core imports successful!')
print(' - AgentRunner: available')
print(' - ReActAgent: available')
print(' - get_llm_model: available')
"
# Test RAI whoami import
echo ""
echo "Testing RAI whoami import..."
python3 -c "
from rai_whoami import EmbodimentInfo, Pipeline, PipelineBuilder
print('RAI whoami imports successful!')
print(' - EmbodimentInfo: available')
print(' - Pipeline: available')
print(' - PipelineBuilder: available')
"
# Check ROS 2 tools
echo ""
echo "Testing ROS 2 integration..."
ros2 --help > /dev/null 2>&1 && echo "ROS 2 CLI: available"
# Print versions
echo ""
echo "=========================================="
echo "Version Information"
echo "=========================================="
RAI_VERSION=$(grep '^version' /ryzers/rai/src/rai_core/pyproject.toml | head -1 | cut -d'"' -f2)
echo "RAI version: ${RAI_VERSION}"
echo "ROS 2 distro: ${ROS_DISTRO}"
python3 --version