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

[bug] ros_typedb returning empty result for valid query #6

Open
Rezenders opened this issue Oct 15, 2024 · 0 comments
Open

[bug] ros_typedb returning empty result for valid query #6

Rezenders opened this issue Oct 15, 2024 · 0 comments

Comments

@Rezenders
Copy link
Contributor

The following query should return x=4 and y=0

ros2 service call /ros_typedb/query ros_typedb_msgs/srv/Query "{query_type: 'fetch', query: 'match
\$o isa object, has object-name \"cup\";
(object:\$o, room:\$r) isa delivery-location;
\$rg isa room, has room-name \"garage\";
\$path (room:\$rg, room:\$r) isa path;
\$pose (physical_thing:\$r) isa pose2d;
fetch
\$pose:x, y, theta;'}"
requester: making request: ros_typedb_msgs.srv.Query_Request(query_type='fetch', query='match $o isa object, has object-name "cup"; (object:$o, room:$r) isa delivery-location; $rg isa room, has room-name "garage"; $path (room:$rg, room:$r) isa path; $pose (physical_thing:$r) isa pose2d; fetch $pose:x, y, theta;')

response:
ros_typedb_msgs.srv.Query_Response(success=True, results=[ros_typedb_msgs.msg.QueryResult(attributes=[ros_typedb_msgs.msg.Attribute(name='pose', label='pose2d', value=rcl_interfaces.msg.ParameterValue(type=0, bool_value=False, integer_value=0, double_value=0.0, string_value='', byte_array_value=[], bool_array_value=[], integer_array_value=[], double_array_value=[], string_array_value=[]))])])
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

No branches or pull requests

1 participant