Coder Social home page Coder Social logo

Comments (3)

clalancette avatar clalancette commented on July 29, 2024

From this report, I'm assuming that you are using phidgets on Kinetic or Melodic. Can you please confirm which one you are using?

Assuming that is true, than the code that does the setting is here:

res.success = !setOutputState(req.index, req.state);

You can see that it sets res.success to the inverse of what the state is. It is kind of odd behavior, I agree. Maybe @mintar can shed some light on why it was done that way originally?

I will point out that in the noetic branch (and the in the ROS 2 branches), the state gets set properly and success always gets set to true.

from phidgets_drivers.

mintar avatar mintar commented on July 29, 2024

That bug seems to have been introduced in 2110921:

  • A new function IK::setOutputState was introduced which returns !CPhidgetInterfaceKit_setOutputState (notice the "!"):

2110921#diff-dd8b044942a7eb33f665646f51775f09d54e8cf6880d53a05b70f508152d55d4R55-R59

  • The function call to !CPhidgetInterfaceKit_setOutputState was replaced by !setOutputState, but it should have been just setOutputState:

2110921#diff-7e6292f6c639563aabec4ae31525423eb0f72156f927be1a013f4487eafbc3a7L96-R95

I've just pushed a commit that fixes this (ca16fca). I'm closing this issue, but feel free to reopen if you want to continue the discussion.

from phidgets_drivers.

clalancette avatar clalancette commented on July 29, 2024

I've just pushed a commit that fixes this (ca16fca). I'm closing this issue, but feel free to reopen if you want to continue the discussion.

Thanks!

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.