-
Notifications
You must be signed in to change notification settings - Fork 270
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
Model info CLI #313
Comments
This is a great idea, some other nice-to-have info:
|
As a reference, here's Gazebo-classic's tool:
The spawn / delete / translate functionality is already covered by service calls ( |
Hi everyone, I'll be taking this issue now if that's ok. I'll let you know any progress |
When implementing the However, is there a way to get a reference of the running server or the entity component manager in order to get more information about the models in the simulation?. |
I’m currently using the [/world/<used_world>/scene/info] service to get a Scene proto msg with the current models. Inside of the scene message there is a Model proto msg with some of the desired information. Here I am trying to get from the Scene proto msg specific fields (at the moment I am dumping the whole message as I couldn’t iterate through the fields yet). Would you have any ideas on how to get a reference to the ECM to request the remaining information about the current models displayed? Or do you know if there is another module that could be useful for this issue? Edit: I wasn't able to get any info related to this issue request from the other services. |
There is some information that we can get with what is already provided through services and there is some information that needs to be gotten somehow.
I see value in tackling this incrementally:
In order to be more atomic and to keep this in reviewable PRs probably 1 and 2 could be tackled into a single PR and leave 3 for a follow-up PR. Wdyt @chapulina ? In the meantime, I will continue thinking about the better approach to tackle point 3. As updates. 1 and 2 are partially solved in @WagnerMarcos 's branch . # To get the pose
>> ign model info -m box --pose
position {
z: 0.5
}
orientation {
w: 1
} Wondering why the pose is only showing a |
See the example added in #859, which hopefully sheds some light into this approach. It takes advantage of the mechanism that we already have to serialize all simulation state into a single message. The power in this approach is that all information that's available to systems is immediately also available to any external program. |
Thanks for pushing that example, it is really useful. |
I have been taking the ecm approach, as shown in the example (which was really helpful), getting the state of the simulation. At the moment I have been able to get information about the pose and links of a passed model. I have also added the option to list the available models in the simulation. Now, when running the Click to see output
And when running
For the next steps I will make different options to obtain either the whole model properties or selecting some of the properties. This way we could get the whole model obtainable info using
But it will also be possible to get only some of the properties when calling the command as Or even a certain link or joint if passing the name as |
What I have some doubts about is which properties of each component I should show. For example:
Do you think it would be a good idea to make a first PR with a reduced list of these properties? |
Yeah I think it would be good to make a 1st PR with a minimal set of features to validate the approach, and after that gets in, we can add functionality little by little 👍 |
The tool was added in #893. I'll consider this issue complete since I understand the main idea was to add the tool, not necessarily to provide specific data. If there's need for specific data to be added, please ticket new issues. |
It would be nice to have command line tool that dumps information about a model. For example:
Could return:
The text was updated successfully, but these errors were encountered: