-
Notifications
You must be signed in to change notification settings - Fork 302
Added move camera to model service #1823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
tutorials/move_camera_to_model.md
Outdated
@@ -0,0 +1,28 @@ | |||
\page move_camera_to_model Move Camera to model | |||
|
|||
This tutorial gives an introduction to Gazebo's service `/gui/move_to/model`. This service will allow to move the camera to a specific model taking in account distance and camera angle. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tutorial gives an introduction to Gazebo's service `/gui/move_to/model`. This service will allow to move the camera to a specific model taking in account distance and camera angle. | |
This tutorial gives an introduction to Gazebo's service `/gui/move_to/model`. This service will allow to move the camera to a specific model taking into account distance to the model and camera angle. |
tutorials/move_camera_to_model.md
Outdated
|
||
## How to move the camera to a model | ||
|
||
1. Load the **Angle View** plugin. This service is only available when loading the **Angle View** plugin. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Load the **Angle View** plugin. This service is only available when loading the **Angle View** plugin. | |
1. Load the **View Angle** plugin. This service is only available when the **View Angle** plugin is loaded. |
tutorials/move_camera_to_model.md
Outdated
|
||
@image html files/move_camera_to_model/box_5.gif | ||
|
||
But can put the camera far away, for example 20 meters: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But can put the camera far away, for example 20 meters: | |
The camera can also be placed far away, for example 20 meters: |
tutorials/move_camera_to_model.md
Outdated
1. Load the **Angle View** plugin. This service is only available when loading the **Angle View** plugin. | ||
2. Call the service using the request message type `ignition.msgs.GUICamera` and the response message type `ignition.msgs.Boolean`. The distance to the object is defined as the z coordinate, and the direction of the camera with a quaternion. It's possible to select the projection type. | ||
|
||
For example, Let's move the camera to the `box` model looking down with 5 meters of separation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example, Let's move the camera to the `box` model looking down with 5 meters of separation. | |
For example, Let's move the camera to the `box` model looking down from 5 meters away. |
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Signed-off-by: Alejandro Hernández Cordero [email protected]
🎉 Tutorial
Summary
Related with this PR #1810
Added tutorial about how to use
/gui/move_to/model
serviceChecklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.