Skip to content

Adding corrected sensors to panorama and path_node view. Fixes #51#52

Merged
zyioump merged 1 commit intostablefrom
51-simplified-opensfm
Oct 20, 2018
Merged

Adding corrected sensors to panorama and path_node view. Fixes #51#52
zyioump merged 1 commit intostablefrom
51-simplified-opensfm

Conversation

@Benvii
Copy link
Member

@Benvii Benvii commented Oct 13, 2018

Add corrected sensors to panorama.

Tested with the following code :

from  opv_api_client import RestClient, Filter, ressources
from geojson import Point

c = RestClient("http://127.0.0.1:5000")

s = c.make(ressources.Sensors)
s.gps_pos = Point(coordinates=[0,0,0])
s.degrees = 0
s.minutes = 0
s.create()

print(s.id_sensors)

panorama = c.make(ressources.Panorama, 2, 42)
panorama.sensors_reconstructed = { 'id_sensors': s.id_sensors, 'id_malette': s.id_malette }
panorama.save()

Copy link
Member

@zyioump zyioump left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested while developing path branch on opv-task

@zyioump zyioump merged commit 2c191ca into stable Oct 20, 2018
@zyioump zyioump deleted the 51-simplified-opensfm branch October 29, 2018 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants