Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
OdomPublisher.cs
を追加しました.Right Wheel Name
とLeft Wheel Name
に左右のホイールのオブジェクトの名前を指定すると,該当するオブジェクトのHinge Joint
から回転速度を取得し,ホイールオドメトリを計算,指定されたトピックにpublishします.車輪径とトレッドは,指定されたホイールオブジェクトの
TwistTest
から取得します.このスクリプト自体は,両輪のオブジェクトの共通の親に適用する必要があります(例えば
base_link
).nav_msgs/Odometry
のchild_frame_id
には,このスクリプトを適用したオブジェクトの名称がそのまま使われます.publish先のトピック名と
frame_id
はそれぞれTopic
とFrame Id
から指定できます.お時間のある時にご確認ください