Coder Social home page Coder Social logo

Comments (8)

clalancette avatar clalancette commented on July 29, 2024 2

For ROS2 rolling, we could even directly remove the old topic, right? My understanding is that breaking changes in rolling are okay, that's what it's for, correct?

That is an option, yes. Though if we do that directly, it doesn't give downstream users any time to make the transition; they'll just break when they update next.

My suggestion for ROS 2 is to do the following:

  1. Create a new branch for Rolling. Leave the foxy and galactic branches as-is.
  2. Develop a patch for Rolling where we add in the new topic, publishing sensor_msgs/msg/Temperature. Make sure to document it, and that the old topic is deprecated.
  3. Review and merge that patch into Rolling.
  4. Release that code into Rolling.
  5. Backport the patch from step 2 into Galactic and Foxy (this is an addition, so it should be fine for those).
  6. When Humble branches off (in about two weeks), make a new humble branch.
  7. At that point, we can remove the old float64 topic from Rolling, since everyone on Foxy, Galactic, and Humble have both the old and new topic available.

Does that make sense?

from phidgets_drivers.

mintar avatar mintar commented on July 29, 2024

Yes, sensor_msgs/Temperature is a much better message type, and we should absolutely use it. The sensor doesn't output variance, so we don't have any use for that field, but timestamping is very useful and one should always use specific message types if possible.

You are right about the breaking change however. ROS uses a Tick-Tock model, so the proper way would be to add a new output topic of type sensor_msgs/Temperature while keeping the float64 topic, and deprecate the float64 topic. Then on the next ROS release the float64 topic can be removed.

This is a bit problematic for ROS1 noetic, because there won't be a next ROS release (at least not from OSRF, it would have to be community-supported). But I guess we should still stick to the Tick-Tock model. @clalancette , any thoughts?

from phidgets_drivers.

clalancette avatar clalancette commented on July 29, 2024

This is a bit problematic for ROS1 noetic, because there won't be a next ROS release (at least not from OSRF, it would have to be community-supported). But I guess we should still stick to the Tick-Tock model. @clalancette , any thoughts?

Agreed with everything you've said. For Noetic, my suggestion is to just add a new topic that publishes the new sensor_msgs/Temperature; that will just live forever. For ROS 2, we can add the same new topic, with the view towards eventually removing the old topic.

from phidgets_drivers.

mintar avatar mintar commented on July 29, 2024

For ROS2 rolling, we could even directly remove the old topic, right? My understanding is that breaking changes in rolling are okay, that's what it's for, correct?

from phidgets_drivers.

mintar avatar mintar commented on July 29, 2024

Yeah, it's not nice to sneak in breaking changes so close to the Humble release, so I agree.

Now all we need is somebody to do it! @J-C-Haley, are you up for it? It's okay if you only do the Noetic part if you are not a ROS2 user yet.

from phidgets_drivers.

J-C-Haley avatar J-C-Haley commented on July 29, 2024

Thanks for explaining @clalancette! I don't use ROS 2 yet, I can add a the topic into the noetic.

As part of this, I'm want to make it to read & publish from all four thermocouples on a TMP1101_1, can anyone can test against a single thermocouple phidget?

from phidgets_drivers.

mintar avatar mintar commented on July 29, 2024

Unfortunately, I don't have any thermocouple phidgets, so I can't test this.

from phidgets_drivers.

J-C-Haley avatar J-C-Haley commented on July 29, 2024

Ok, added a PR for the noetic branch! There will now be a temperature_{channel} topic, which takes a channel parameter from launch and now allows for multiple thermocouples on the same reader.

If it's fine with you, I'll leave the patching & merging on other branches to someone with more git experience?

from phidgets_drivers.

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.