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

Calling service for getting Actor poses #2377

Open
Rak-r opened this issue Apr 19, 2024 · 5 comments
Open

Calling service for getting Actor poses #2377

Rak-r opened this issue Apr 19, 2024 · 5 comments
Labels
help wanted We accept pull requests!

Comments

@Rak-r
Copy link

Rak-r commented Apr 19, 2024

Version: Gazebo Fortress

I am trying to call the service to get the poses of actors in the simulation from command line using

ign service -s /world/actors/state --reqtype ignition.msgs.Actor --reptype ignition.msgs.Actor --timeout -50000 --req 'entity: {name: "demo_actor"}, pose: {}'

But nothing comes up in the terminal after running the above. Am I missing something or is the syntex is wrong? Any help would be much appreciated. @azeey

Requirement:

I want the pose as topic so that I can communicate with ros2.
Is there any way to call this service through python script? any sample example is available. I checked the sim repo but not able to find much on this.

@azeey
Copy link
Contributor

azeey commented Apr 19, 2024

Have you tried the PosePublisher system with <publish_nested_model_pose> set to true?

@Rak-r
Copy link
Author

Rak-r commented Apr 19, 2024

I believe that works for models entities not actor. I have tried adding it but not running as it asks for model to specified under model tag not actor.

@Riyadh-kh
Copy link

Referencing issue #2370 the same problem is occurring with me, I can't find a way to access actors poses despite using PosePublisher

@Rak-r
Copy link
Author

Rak-r commented Apr 23, 2024

I was thinking to implement some custom plugin to publish both cmd_vel and pose from ros2 and control the actor. Something similar exists for ros1 and gazebo 11 but new headers and classes in ignition gazebo or whatever the version of new gazebo it is a bit confusing. I am trying by taking reference from commamd actor plugin.@Riyadh-kh

@azeey azeey added the help wanted We accept pull requests! label May 13, 2024
@azeey
Copy link
Contributor

azeey commented May 13, 2024

Can we close this as a duplicate of #2370 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted We accept pull requests!
Projects
Status: Inbox
Development

No branches or pull requests

3 participants