forked from usdot-fhwa-stol/carma-msgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/j2735 geofence convertor (usdot-fhwa-stol#54)
* Add more detailed comments describing how to use a geofence schedule * Remove invalid optional indicators from geofence message
- Loading branch information
1 parent
37bc3dc
commit 349ae08
Showing
6 changed files
with
55 additions
and
46 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,27 +1,28 @@ | ||
# | ||
# DaySchedule.msg | ||
# | ||
# Part of the CARMA Cloud geo-fence specification not part of the official SAE j2735 standard | ||
# | ||
# J2735 2016 message format. | ||
# Part of the CARMA Cloud geo-fence specification for vehicle internal use. | ||
# | ||
# @author Misheel Bayartsengel | ||
# @version 0.1 | ||
# | ||
# Description | ||
# ... | ||
# The schedule bounds of a geofence within a specific day of the week and the UTC timezone (as an offset) of the day of the week. | ||
|
||
# Start | ||
# -- offset seconds of the day (0..86399) | ||
# Specifies the start of time of the schedule. | ||
# If a ScheduleParams are not specified than this geofence is immediately active once this start time is exceeded on a given day. | ||
# If the ScheduleParams are specified than the start time simply bounds the activation periods. | ||
# Start time cannot exceed midnight. | ||
duration start | ||
|
||
# End | ||
# -- offset seconds of the day (0..86399) | ||
# Activation bound for this geofence. Once this point is exceeded the geofence cannot be active. | ||
# Ent time cannot exceed midnight or be less than start time. | ||
duration end | ||
|
||
# UTCOffset | ||
# -- time offset of UTC in seconds (-43200 .. 50400) | ||
# -- westernmost: 43200 (-12:00) to the easternmost: 50400 (14:00) | ||
# Defines the timezone as a UTC offset to be used for determining the day of the week. | ||
duration utcoffset | ||
|
||
|
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 |
---|---|---|
@@ -1,38 +1,56 @@ | ||
# | ||
# Schedule.msg | ||
# | ||
# Part of the CARMA Cloud geo-fence specification not part of the official SAE j2735 standard | ||
# | ||
# J2735 2016 message format. | ||
# Part of the CARMA Cloud geo-fence specification for vehicle internal use. | ||
# | ||
# @author Misheel Bayartsengel | ||
# @version 0.1 | ||
# | ||
# The schedule tag supplies time-based parameters to controls. This enables temporary | ||
# controls to expire and cyclic controls to repeat. A schedule has an overall start and | ||
# end date and time that can be an empty string indicating forever or at least until | ||
# overridden when updated. Schedules optionally specify days of the week, hours of day, | ||
# and a repeat interval and duration along with the repeat unit of measure such as minutes or hours. | ||
# end date and tim. Schedules optionally specify days of the week, hours of day, | ||
# and a repeat interval and duration. | ||
# | ||
# If a geofence needs to be active through midnight than the DayOfWeek and DaySchedule cannot be used and the start, end, and ScheduleParams should be used instead. | ||
|
||
# Start Time in seconds | ||
# -- time when this schedule starts | ||
# Start Time in UTC seconds | ||
# Specifies the start of time of the schedule | ||
# If a DayOfWeek is not specified than the geofence is immediately active once past this start time. | ||
# If the DayOfWeek is specified than the start time simply bounds the activation periods. | ||
time start | ||
|
||
# End Time in seconds | ||
# -- time when this schedule ends | ||
# End Time in UTC seconds | ||
# Specifies the end of time of the schedule | ||
# Past this end time a geofence is never active | ||
time end | ||
|
||
# DayOfWeek OPTIONAL ::= SEQUENCE (SIZE(7)) OF BOOLEAN | ||
# Specifies the days of the week where this geofence will be active. | ||
# -- 0=sunday, 1=monday, ... | ||
# -- if monday, dow = [false, true, false, false, false, false, false] | ||
# If this is set than the DaySchedule must also be set. | ||
bool[7] dow | ||
bool dow_exists | ||
|
||
# between DaySchedule OPTIONAL | ||
# Enum for accessing dow index | ||
uint8 SUN=0 | ||
uint8 MON=1 | ||
uint8 TUES=2 | ||
uint8 WED=3 | ||
uint8 THUR=4 | ||
uint8 FRI=5 | ||
uint8 SAT=6 | ||
|
||
# DaySchedule OPTIONAL | ||
# A day schedule defines when the geofence will be active during the day. | ||
# If this is set then the day of the week (dow) must also be specified. | ||
# The time specified by the DaySchedule cannot cross midnight. | ||
cav_msgs/DaySchedule between | ||
bool between_exists | ||
|
||
# repeat ScheduleParams OPTIONAL | ||
# ScheduleParams OPTIONAL | ||
# The schedule parameters define the duration and repetition of the geofence activation | ||
# If a DayOfWeek is specified than the duration+interval must not exceed 24hrs. | ||
cav_msgs/ScheduleParams repeat | ||
bool repeat_exists | ||
|
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 |
---|---|---|
@@ -1,20 +1,24 @@ | ||
# | ||
# ScheduleParams.msg | ||
# | ||
# Part of the CARMA Cloud geo-fence specification not part of the official SAE j2735 standard | ||
# | ||
# J2735 2016 message format. | ||
# Part of the CARMA Cloud geo-fence specification for vehicle internal use. | ||
# | ||
# @author Misheel Bayartsengel | ||
# @version 0.1 | ||
# | ||
# Description | ||
# ... | ||
# Message describing a geofence activation period and repeating interval. | ||
# Once a geofence becomes active it will remain active for the specified duration. | ||
# Once the duration as elapsed the geofence will become inactive until the specified interval has elapsed from the | ||
# previous duration START time. | ||
# So if you have an interval of 30m and duration of 15m, | ||
# then starting at t=0 you will have activation from 0-15m and 30-45m. | ||
|
||
# Interval | ||
# -- duration between start times in seconds (min: 0) | ||
# The interval between repeats of geofence activation. | ||
duration interval | ||
|
||
# Duration ::= INTEGER | ||
# -- duration of schedule in minutes, must be less than interval (min :0) | ||
# Duration | ||
# The duration which a geofence will remain active for. | ||
# This must not exceed the specified interval. | ||
duration duration |
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
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