Skip to content

Commit

Permalink
DurationMsg -> Duration().to_msg()
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrm1 committed Mar 2, 2024
1 parent d7372ce commit 55a518c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/rktl_planner/rktl_planner/bezier_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
import math
from rktl_planner import BezierCurve
from rktl_msgs.msg import BezierPath as BezierPathMsg
from rclpy import Duration
from rclpy.duration import Duration
from geometry_msgs.msg import Vector3
from std_msgs.msg import Duration as DurationMsg


class BezierPath:
Expand Down Expand Up @@ -127,7 +126,7 @@ def angular_vel_at(self, secs):

def to_msg(self):
"""Returns a `rktl_msg/BezierPathMsg` object representing the `BezierPath` object."""
duration_msg = DurationMsg(self.duration)
duration_msg = Duration(self.duration).to_msg()
msg = BezierPathMsg(
order=self.bezier_curve.order,
control_points=self.bezier_curve.control_points,
Expand Down

0 comments on commit 55a518c

Please sign in to comment.