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

Use modality wait-until in the run script #2

Open
jonlamb-gh opened this issue Mar 10, 2023 · 0 comments
Open

Use modality wait-until in the run script #2

jonlamb-gh opened this issue Mar 10, 2023 · 0 comments

Comments

@jonlamb-gh
Copy link
Collaborator

Instead of query & jq

function get_num_contacts {
local cnt=$( modality query 'contact @ robot_chassis AGGREGATE count()' -f json | jq '.[0]["value"].Scalar' )
echo "$cnt"
}

@jonlamb-gh jonlamb-gh changed the title modality wait-until Use modality wait-until in the run script Mar 10, 2023
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