Coder Social home page Coder Social logo

Comments (9)

buschbapti avatar buschbapti commented on May 16, 2024 1

If you are happy with the way it has been handled in #65 I can make similar modifications for JointState

from control-libraries.

domire8 avatar domire8 commented on May 16, 2024

@buschbapti I think we are almost there. One thing that still confuses me is why the Jacobian class implements set_rows and set_cols without changing the data variable and a set_data function without changing the rows and cols variables. Shouldn't that all happen together, i.e. when you change the data, the number of rows and cols are changed and when you change the size, the data is changed too?

from control-libraries.

domire8 avatar domire8 commented on May 16, 2024

For the JointState this problem is solved, as each time you call set_names, the JointState is initialized again.

from control-libraries.

buschbapti avatar buschbapti commented on May 16, 2024

Well to be honest I am not even sure what should be the usage of the rows and cols setters. At least in the public API. I would say that those should either do as you suggest or be completely removed. Regarding set_names in JointState didn't you had a problem there that is is changing the size? I believe I have modified this behavior in Jacobian but not JointState.

from control-libraries.

domire8 avatar domire8 commented on May 16, 2024

I agree about the rows and cols setters, we could probably remove those and in the data setter we only accept matrices of the correct size..?

I don't recall the problem you are mentioning with the JointState, from the code I can tell that initialize is called when you set the names and that makes sense in my opinion.

from control-libraries.

buschbapti avatar buschbapti commented on May 16, 2024

Well I guess this is part of the bigger improvement of making states less mutable. I am not sure if it should accept the correct size or at least the possibility to also set the transpose maybe.

from control-libraries.

domire8 avatar domire8 commented on May 16, 2024

Okay so would you leave this issue open? Because I was just checking in if this is something that could be closed quickly

from control-libraries.

buschbapti avatar buschbapti commented on May 16, 2024

no let's keep it open for now

from control-libraries.

domire8 avatar domire8 commented on May 16, 2024

I think the problems have been addressed in PR #144 and this issue can be closed now.

from control-libraries.

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.