Skip to content

Commit

Permalink
Add a frame_id field to LocationFix (#108)
Browse files Browse the repository at this point in the history
The frame_id field for the LocationFix message specifies the frame for
the origin of the sensor so the lat/lon values can be tied to a location
on the robot.

Fixes: #100
  • Loading branch information
defunctzombie authored May 11, 2023
1 parent 2bde7ce commit f8d19d0
Show file tree
Hide file tree
Showing 11 changed files with 131 additions and 0 deletions.
18 changes: 18 additions & 0 deletions internal/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1228,33 +1228,51 @@ const LocationFix: FoxgloveMessageSchema = {
name: "LocationFix",
description: "A navigation satellite fix for any Global Navigation Satellite System",
fields: [
{
name: "timestamp",
type: { type: "primitive", name: "time" },
description: "Timestamp of the message",
protobufFieldNumber: 6,
},
{
name: "frame_id",
type: { type: "primitive", name: "string" },
description:
"Frame for the sensor. Latitude and longitude readings are at the origin of the frame.",
protobufFieldNumber: 7,
},
{
name: "latitude",
type: { type: "primitive", name: "float64" },
description: "Latitude in degrees",
protobufFieldNumber: 1,
},
{
name: "longitude",
type: { type: "primitive", name: "float64" },
description: "Longitude in degrees",
protobufFieldNumber: 2,
},
{
name: "altitude",
type: { type: "primitive", name: "float64" },
description: "Altitude in meters",
protobufFieldNumber: 3,
},
{
name: "position_covariance",
type: { type: "primitive", name: "float64" },
description:
"Position covariance (m^2) defined relative to a tangential plane through the reported position. The components are East, North, and Up (ENU), in row-major order.",
array: 9,
protobufFieldNumber: 4,
},
{
name: "position_covariance_type",
type: { type: "enum", enum: PositionCovarianceType },
description:
"If `position_covariance` is available, `position_covariance_type` must be set to indicate the type of covariance.",
protobufFieldNumber: 5,
},
],
};
Expand Down
6 changes: 6 additions & 0 deletions ros_foxglove_msgs/ros1/LocationFix.msg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions ros_foxglove_msgs/ros2/LocationFix.msg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions schemas/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions schemas/flatbuffer/LocationFix.fbs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions schemas/jsonschema/LocationFix.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions schemas/jsonschema/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions schemas/proto/foxglove/LocationFix.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions schemas/ros1/LocationFix.msg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions schemas/ros2/LocationFix.msg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions schemas/typescript/LocationFix.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f8d19d0

Please sign in to comment.