Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version: 0.0.8 → 0.0.9 #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.0.8
current_version = 0.0.9
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion dtproject/self.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ maintainer:
name: "Andrea F. Daniele"
email: "[email protected]"
description: "Duckietown messages for the DTPS middleware"
version: 0.0.8
version: 0.0.9
2 changes: 1 addition & 1 deletion src/duckietown_messages/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.8"
__version__ = "0.0.9"
12 changes: 12 additions & 0 deletions src/duckietown_messages/actuators/drone_control.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from ..base import BaseMessage

class DroneControl(BaseMessage):
"""
Roll Pitch Yaw(rate) Throttle Commands, simulating output from
remote control. Values range from 1000 to 2000
which corespond to values from 0% to 100%
"""
roll: float
pitch: float
yaw: float
throttle: float
10 changes: 10 additions & 0 deletions src/duckietown_messages/actuators/drone_mode.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from enum import IntEnum
from ..base import BaseMessage

class Mode(IntEnum):
DISARMED = 0
ARMED = 1
FLYING = 2

class DroneModeMsg(BaseMessage):
mode: Mode
18 changes: 18 additions & 0 deletions src/duckietown_messages/actuators/drone_motor_command.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from ..base import BaseMessage
from ..standard.header import AUTO, Header

class DroneMotorCommand(BaseMessage):
"""
PWM commands from the range defined on betaflight for each motor.
"""
header: Header = AUTO

# range defined on cleanflight
minimum : int
maximum : int

# PWM commands for the individual motors
m1 : int
m2 : int
m3 : int
m4 : int
12 changes: 12 additions & 0 deletions src/duckietown_messages/sensors/attitude.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from ..base import BaseMessage
from ..standard.header import Header, AUTO


class Attitude(BaseMessage):
# header
header: Header = AUTO

# angular acceleration about the 3 axis
roll: float
pitch: float
yaw: float
13 changes: 13 additions & 0 deletions src/duckietown_messages/sensors/battery.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from ..base import BaseMessage
from ..standard.header import Header, AUTO

## TODO: Fully define the BatteryState message to be compatible with the ROS message definition
## http://docs.ros.org/en/noetic/api/sensor_msgs/html/msg/BatteryState.html

class BatteryState(BaseMessage):
header: Header = AUTO

voltage: float
present: bool