Applying Force Torque - modulabs/gazebo-tutorial GitHub Wiki

Introduction

μ΄μ§€μΉ¨μ„œλŠ” μ‹œλ¬Όλ ˆμ΄μ…˜μ€‘μ— 토크와 νž˜μ„ λͺ¨λΈμ— κ°€ν•˜λŠ” 방법에 λŒ€ν•΄ κΈ°μˆ ν•©λ‹ˆλ‹€.

Applying force and torque examples

κ°€μ œλ³΄λ₯Ό μ—¬μ‹œκ³ , insert tab으둜 λΆ€ν„° simple arm을 insert ν•©λ‹ˆλ‹€. 그리고 툴 λ°•μŠ€λ‘œ λΆ€ν„° λ°•μŠ€λ₯Ό μ‚½μž…μž…λ‹ˆλ‹€, μ΄λ•Œ μ‹œλ¬Όλ ˆμ΄μ…˜μ„ λ©ˆμΆ”μ§€ λ§ˆμ„Έμš”

Apply force to a link

μš°λ¦¬λŠ” μ‹¬ν”Œμ•”μ˜ νŠΉμ •λ§ν¬μ— νž˜μ„ κ°€ν•˜κΈ°λ₯Ό μ›ν•©λ‹ˆλ‹€. λ‹€λ₯Έ world treeμ—μ„œ , arm_wrist_lift 우츑 λ§ˆμš°μŠ€ν΄λ¦­ν•˜κ³  Apply Force/Torquλ₯Ό μ„ νƒν•˜λ‹ˆλ‹€. λŒ€ν™”μ°½μ€ νŒμ—…λ˜κ³ , 당신은 직선 ν™”μ‚΄ν‘œμ™€ 컀브(암에 μ ‘μ΄‰λ˜μ–΄μžˆλŠ”)λ₯Ό λ³΄κ²Œλ κ²λ‹ˆλ‹€.

λŒ€ν™”μƒμžμ— 100n yμΆ•λ₯Ό μ„ νƒν•˜κ³  μ—”ν„°λ₯Ό μΉ©λ‹ˆλ‹€. 암은 νšŒμ „ν•˜κΈ° μ‹œμž‘ν•©λ‹ˆλ‹€. νž˜μ€ 링크 y λ°©ν–₯으둜 ν•œ μŠ€ν… μ μš©λ˜μ—ˆμŠ΅λ‹ˆλ‹€, λ°€λ¦¬μ΄ˆμ˜ μ˜€λ”μ— μžˆμŠ΅λ‹ˆλ‹€. λ”°λΌμ„œ 그와같은 큰 힘이 ν•„μš”ν•©λ‹ˆλ‹€.

Apply torque to a link

링크에 μ μš©ν•˜λŠ”λ°, νŒ”μ˜ μ—˜λ³΄μš°λ₯Ό μ„ νƒν•©λ‹ˆλ‹€, ν™”μ‚΄ν‘œλŠ” 이 링크λ₯Ό μ›€μ§μž…λ‹ˆλ‹€. ν† ν¬μ•„λž˜μ—μ„œ 100nm z좕을 μž…λ ₯ν•˜κ³  μ•½κ°„μ˜ μ‹œκ°„μ„ μ μš©ν•©λ‹ˆλ‹€. νšŒμ „ν•˜λŠ”κ²ƒμ„ λ³΄κΈ°μœ„ν•΄.

Apply force with an offset

이제 λ°•μŠ€μ— νž˜μ„ μ μš©ν•©λ‹ˆλ‹€. 였λ₯Έμͺ½ν‚€ λ₯Ό λ°•μŠ€μ— ν΄λ¦­ν•˜κ³ , Apply Force/Torque을 μ„ νƒν•©λ‹ˆλ‹€. μƒˆλ‘œμ€ λŒ€ν™”μ°Έμ΄ λ‚˜μ˜΅λ‹ˆλ‹€.

ν† ν¬μ•„λž˜μ—μ„œ, 100n x 좕을 μ„ νƒν•©λ‹ˆλ‹€. λ‹€μŒμ€ μ–΄ν”Œλ¦¬μΌ€μ΄μ…˜ 포인트, y μΆ• , μœ„μͺ½ ν™”μ‚΄ν‘œλ₯Ό λˆ„λ¦…λ‹ˆλ‹€, 그것이 1m λ„λ‹¬ν• λ•Œ κΉŒμ§€, 당신은 당신이 ν•˜λŠ”λŒ€λ‘œ 화살이 μ›€μ§μ΄λŠ”κ²ƒμ„ λ³Όμˆ˜μžˆμŠ΅λ‹ˆλ‹€. μž μ‹œν›„μ— μ—”ν„°λ₯Ό λˆ„λ¦…λ‹ˆλ‹€. λ°•μŠ€λŠ”νšŒμ „ν• κ²λ‹ˆλ‹€, μ—”ν„°λ₯Ό ν™€λ“œν•©λ‹ˆλ‹€, λ°˜λ³΅ν•΄μ„œ μŠ€ν•€μ†λ„λ₯Ό λ†’κ²Œ ν•©λ‹ˆλ‹€.

The interface explained

Note: 당신이 νž˜μ΄λ‚˜ 토크λ₯Ό μ‹œλ¬Όλ ˆμ΄μ…˜ λ©ˆμΆ”μ—ˆμ„λ•Œ μ€€λ‹€λ©΄, 그듀은 μ••μΆ•ν• κ²λ‹ˆλ‹€. 그리고 μ‹œλ¬Όλ ˆμ΄μ…˜μ΄ μ •μ§€κ°€ ν’€λ Έμ„λ•Œ ν•œκΊΌλ²ˆμ— 적용이 λ©λ‹ˆλ‹€.

Force

. X, Y, Z : 각각의 ν•„λ“œλŠ” μ–Όλ§ˆλ‚˜ λ§Žμ€ 힘이 λ°©ν–₯에 적용이 λ˜λŠ”μ§€ λͺ…ν™•ν™” ν•©λ‹ˆλ‹€, 이 ν”„λ ˆμž„μ€ link 에 고정이 λ˜μ–΄μžˆμŠ΅λ‹ˆλ‹€.

. Mag: The total magnitude of the force which will be applied, which is the Euclidean norm of the 3 forces above. Changing the magnitude changes the XYZ fields proportionally, maintaining the force direction.

. Clear: Pressing this button will zero the X, Y, Z and Mag fields.

. Application point:By default, force is applied to the link's center of mass. Here you can edit the X, Y and Z fields to give the force an offset with respect to the link's origin expressed in the link's frame. Select Center of mass again to fill the XYZ fields with its coordinates.

 Tip: Right-click the model and choose View -> Center of mass to see its position. You might want to also make the model transparent for that.

. Apply Force: ν•œλ²ˆ μŠ€ν…μ— ν•œλ²ˆμ˜ νž˜μ„ μ μš©ν• λ•Œ ν΄λ¦­ν•˜μ„Έμš”, μ‹œκ°„μŠ€ν…μ€ λ°€λ¦¬μ΄ˆμ˜ μˆœμ„œλΌλŠ”κ²ƒμ„ μžŠμ§€λ§ˆμ„Έμš”, κ·Έλž˜μ„œ 큰 μΆ©λŒμ„ μ£ΌκΈ°μœ„ν•΄μ„œλŠ” 큰 νž˜μ„ 쀄 ν•„μš”κ°€ μžˆμŠ΅λ‹ˆλ‹€.

Torque

. X, Y, Z: 각 ν•„λ“œλŠ” μ–Όλ§ˆλ‚˜ λ§Žμ€ 토크가 적용이 λ˜λŠ”μ§€ λ³΄μ—¬μ€λ‹ˆλ‹€. 이 ν”„λ ˆμž„μ€ 링크에 κ³ μ •λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€.

. Mag: 전체적인 ν† ν¬μ˜ 등급이 μ μš©λ κ²λ‹ˆλ‹€. xyzν•„λ“œμ˜ λΉ„μœ¨λ‹¨μœ„λ‘œ λ°”κΎΈμ–΄ μ€„μˆ˜ μžˆμŠ΅λ‹ˆλ‹€. λ°©ν–₯은 μœ μ§€ν•œμ±„λ‘œ. . Clear: λˆ„λ₯΄λ©΄ xyz, magdγ…£ 0κ°€ λ©λ‹ˆλ‹€.

. Apply Torque: ν•œ μŠ€ν…μ— 단지 ν† ν¬λ§Œμ„ μ μš©ν• λ•Œ 이것을 ν΄λ¦­ν•˜μ„Έμš”. νƒ€μž„μŠ€ν…μ€ λ°€λ¦¬μ„Έμ»¨λ“œ μž„μ„ λͺ…μ‹¬ν•˜μ„Έμš” κ·Έλž˜μ„œ 큰 각 μΆ©λŒμ— μ μš©μ„ ν•˜κΈ°μœ„ν•΄ 큰 토크가 ν•„μš”ν•©λ‹ˆλ‹€.

Note: ν† ν¬λŠ” 항상 μ§ˆλŸ‰μ€‘μ‹¬μ— 적용이 λ©λ‹ˆλ‹€.

κ³΅ν†΅μœΌλ‘œ μ μš©λ˜λŠ” 사항

힘과 ν† ν¬λŠ” λ™μ‹œμ— ν•œλ²ˆλ°˜ 적용이 λ©λ‹ˆλ‹€. i.eλŠ” λ ŒμΉ˜μ— 적용이 λ©λ‹ˆλ‹€ λ™μ‹œμ— μ μš©ν•˜κΈ° μœ„ν•΄ 그글을 반볡적으둜 클릭 λ˜λŠ” μ—”ν„°λ₯Ό λˆ„λ₯΄μ„Έμš”

Rotation tool

ν™”μ‚΄ν‘œ λ°©ν–₯은 항상 λ‹€μ΄μ–Όλ‘œκ·Έ λ°•μŠ€μ˜ νŠΉμ •ν•œ λ°©ν–₯에 λ§€μΉ˜κ°€ λ˜μ–΄μžˆμŠ΅λ‹ˆλ‹€ 이 λ‹€μ΄μ•Œλ‘œκ·Έλ‘œ 뢀타, λ°©ν–₯은 xyz λ°”κΏˆμœΌλ‘œμ„œ λ³€κ²½ν• μˆ˜ μžˆμŠ΅λ‹ˆλ‹€ κ·Έ λ°©ν–₯은 λ“œλ ˆκΉ…ν•΄μ„œλ„ λ°”κΏ€μˆ˜ μžˆμŠ΅λ‹ˆλ‹€.