Skip to content

Commit dd6f539

Browse files
committed
addded 2 plugins doc
1 parent f83dedb commit dd6f539

37 files changed

Lines changed: 1679 additions & 35 deletions

File tree

20.4 KB
Loading
11.6 KB
Loading

docs/assets/images/joint_1.png

14 KB
Loading
171 KB
Loading

docs/assets/images/pd_control.png

64 KB
Loading
54.5 KB
Loading

docs/common-code-system-plugin.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,25 @@ We will take help of components to find entity integer value like:
118118
</details>
119119
120120
121+
<details>
122+
<summary>d. find EntityByComponents</summary>
123+
124+
uing ```EntityByComponents()```
125+
126+
find such a joint entity which has all of the followings components:
127+
parent entity is ***model component*** to which plugin is attached,
128+
has a ***name component*** of value ```joint_1```
129+
***joint compenent*** is attach on it
130+
131+
[reference code](https://github.com/gazebosim/gz-sim/blob/gz-sim8/src/Model.cc#L132C1-L133C1)
132+
133+
```c++
134+
this->jointEntity = _ecm.EntityByComponents(
135+
components::ParentEntity(_entity),
136+
components::Name(jointName),
137+
components::Joint());
138+
```
139+
121140
### 2. Read/Write on the Component value
122141
![command](assets/images/cmd_component.png)
123142

0 commit comments

Comments
 (0)