Configure `camera_mono` for Visual Odometry
Note
The camera_mono
model is an experimental feature.
Stability is not guaranteed.
Breaking changes are likely to occur, and occur often.
The camera_mono
movement sensor model is an experimental model that uses a visual odometry algorithm with dead reckoning to track the position, orientation, linear velocity and angular velocity of the camera’s frame.
The camera_mono
model can use any single camera within its algorithm.
Navigate to the Config tab of your robot’s page in the Viam app.
Click on the Components subtab and navigate to the Create component menu.
Enter a name for your movement sensor, select the movement-sensor
type, and select the camera_mono
model.
Click Create Component.
Edit and fill in the attributes as applicable.
{
"components": [
{
"name": "<your-sensor-name>",
"type": "movement_sensor",
"model": "camera_mono",
"attributes": {
"camera": "<your-camera-name>",
"motion_estimation_config": {
<see Vision Service documentation>
}
},
"depends_on": []
}
]
}
{
"components": [
{
"name": "myCamera",
"type": "camera",
"model": "webcam",
"attributes": {
"video_path": "video0"
},
"depends_on": []
},
{
"name": "movementCamera",
"type": "movement_sensor",
"model": "camera_mono",
"attributes": {
"camera": "myCamera",
"motion_estimation_config": {
<see Vision Service documentation>
}
},
"depends_on": [
"myCamera"
]
}
]
}
Attributes
Name | Type | Inclusion | Description |
---|---|---|---|
camera | string | Required | The name of the camera you want to use for visual odometry. |
motion_estimation_config | object | Required | See motionestimation.go in RDK. |
Have questions, or want to meet other people working on robots? Join our Community Discord.
Was this page helpful?
Glad to hear it! If there is anything we could be doing better, please create an issue.
We're sorry about that. If you'd like to talk to us for help, please join the Community Discord. To ensure we know what's wrong with this page, you can also open an issue.