Git Product home page Git Product logo

Comments (9)

Nickolaim avatar Nickolaim commented on June 25, 2024

I can take this item if nobody is looking at it yet.

from rclpy.

tfoote avatar tfoote commented on June 25, 2024

I don't think anyone is actively working on this. If you'd like to start work on the clock, timer and rate that would be feasible. The time source is blocked on the availability of parameters. If you'd like to pick it up I'd suggest creating a separate ticket for one of the smaller parts to sketch out how you're going to approach it to get feedback before you jump in and implement it.

from rclpy.

dhood avatar dhood commented on June 25, 2024

Here's some additional detail about the steps that would be required.

  • Time class wrapping rcl types (rcl_time_point, rcl_duration) and functions (rcl_difference_times, rcl_get_time_now). Conversions to/from builtin_interfaces msg type.
  • Clock class wrapping rcl's rcl_clock_t, exposing get_now; Node has a clock; demos using node.now() if appropriate.
  • TimeSource wrapping rcl; implementation of ROS time support: A node is used to create a TimeSource of "ROS time" (subscription to /clock, use_sim_time support by some means), node's clock is managed by the TimeSource.
  • Time jump types (TimeJump, JumpThreshold) and logic moved from rclcpp to rcl, wrapped in python. Jump handlers in python.
  • Timer using specific Clock (rclpy Timer currently wraps an rcl timer that rcl_wait uses) in a similar manner to what will be done for rclcpp.
  • Addition of Rate in a similar manner to what will be done for rclcpp.

from rclpy.

stonier avatar stonier commented on June 25, 2024

Another one for the list, oneshot timers?

from rclpy.

dirk-thomas avatar dirk-thomas commented on June 25, 2024

A oneshot timer should be straight forward to implement on top of regular timers by cancelling the timer in the first callback.

Please consider to contribute a pull request for this feature.

from rclpy.

slessans avatar slessans commented on June 25, 2024

@dirk-thomas do you know if anyone took a shot at contributing a simple one shot timer? If not I will give it a try

from rclpy.

dirk-thomas avatar dirk-thomas commented on June 25, 2024

do you know if anyone took a shot at contributing a simple one shot timer?

Not that I am aware of.

If not I will give it a try

That would be great.

from rclpy.

mhpanah avatar mhpanah commented on June 25, 2024

I'm in need of Rate method to use sim_time. Has Rate method been implemented on rclpy yet? Thanks.

from rclpy.

jacobperron avatar jacobperron commented on June 25, 2024

I'm in need of Rate method to use sim_time. Has Rate method been implemented on rclpy yet?

Nope. PRs welcome ;)

from rclpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.