/gazebo/get_model_state in ROS2 not present
Hello,
I want to extract with a python script the position of a robot (that I know the model name of) from gazebo.
In many forum posts and tutorials for ROS1, the /gazebo/get_model_state
service (API docu) is used for that, but as mentioned here it is deprecated.
What I have done so far is following this tutorial and now want to use it to get the position of a turtlebot3 inside its demo world.
If I put ros2 service call /get_entity_state gazebo_msgs/GetEntityState '{name: turtlebot3, reference_frame: world}'
the output is just:
waiting for service to become available...
Does that mean, /get_entity_state is not running automatically when gazebo is started?