gz-sim
gz-sim copied to clipboard
Calling service for getting Actor poses
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.