-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add snippet and screenshot for the
GeoPoints
archetype
- Loading branch information
Showing
8 changed files
with
136 additions
and
3 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
crates/store/re_types/definitions/rerun/archetypes/geo_points.fbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Log some very simple geospatial point. | ||
|
||
#include <rerun.hpp> | ||
|
||
int main() { | ||
const auto rec = rerun::RecordingStream("rerun_example_geopoints"); | ||
rec.spawn().exit_on_failure(); | ||
|
||
rec.log( | ||
"rerun_hq", | ||
rerun::GeoPoints({{59.319221, 18.075631}}) | ||
.with_radii(rerun::Radius::ui_points(10.0f)) | ||
.with_colors(rerun::Color(255, 0, 0)) | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"""Log some very simple geospatial point.""" | ||
|
||
import rerun as rr | ||
|
||
rr.init("rerun_example_geopoints", spawn=True) | ||
|
||
rr.log( | ||
"rerun_hq", | ||
rr.GeoPoints( | ||
[59.319221, 18.075631], | ||
radii=rr.Radius.ui_points(10.0), | ||
colors=[255, 0, 0], | ||
), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//! Log some very simple geospatial point. | ||
fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
let rec = rerun::RecordingStreamBuilder::new("rerun_example_geopoints").spawn()?; | ||
|
||
rec.log( | ||
"rerun_hq", | ||
&rerun::GeoPoints::new([(59.319221, 18.075631)]) | ||
.with_radii([rerun::Radius::new_ui_points(10.0)]) | ||
.with_colors([rerun::Color::from_rgb(255, 0, 0)]), | ||
)?; | ||
|
||
Ok(()) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.