docs: fix anchor link in snippets

This commit is contained in:
Oleg Kalachev
2024-02-13 19:22:02 +03:00
parent 42c26aa645
commit 8c5551b00b
2 changed files with 2 additions and 2 deletions

View File

@@ -489,7 +489,7 @@ Check, if the code is running inside a [Gazebo simulation](simulation.md):
is_simulation = rospy.get_param('/use_sim_time', False)
```
### # #{simulator-interaction}
### # {#simulator-interaction}
You can move a physical object (link) in Gazebo (as well as change its velocity) using the `gazebo/set_link_state` service (of the type [`SetLinkState`](http://docs.ros.org/en/api/gazebo_msgs/html/srv/SetLinkState.html)). For example, if you add a cube to the world (link `unit_box::link`), you can move it to the point (1, 2, 3):

View File

@@ -500,7 +500,7 @@ param_set(param_id='MPC_Z_P', value=ParamValue(real=1.5))
is_simulation = rospy.get_param('/use_sim_time', False)
```
### # #{simulator-interaction}
### # {#simulator-interaction}
Переместить физический объект (линк) в Gazebo (а также поменять его скорости) можно при помощи сервиса `gazebo/set_link_state` (тип [`SetLinkState`](http://docs.ros.org/en/api/gazebo_msgs/html/srv/SetLinkState.html)). Например, если добавить в мир объект куб (линк `unit_box::link`), то так можно переместить его в точку (1, 2, 3):