Git Product home page Git Product logo

sot-hrprtc-hrp2's Issues

Controller frequency

Hello

@olivier-stasse @florent-lamiraux
I have some issues defining the frequency of the main control loop.
During my execution, the control loop frequency (ie the delay between two calls of RtcStackOfTasks::onExecute) oscillates between 50 and 100Hz, whereas it should be a fixed 200Hz.
To do this measurement, I have reduced this method to the strict minimum (so that it does not come from the real computation of the control value), aka

RTC::ReturnCode_t RtcStackOfTasks::onExecute(RTC::UniqueId /* ec_id */)
{
captureTime (t1_);
ofs_timing << "startExecute " << getDelay(t0_,t1_) < < std::endl;
captureTime (t0_);
return RTC::RTC_OK;
}

I though the tuning of this frequency could be done in the rtc.conf file, but it is not used since the executable RtcStackOfTasksComp is never run.

In fact, this frequency does not seem to be related to this issue.
Indeed, rtcat indicates that the rate of the sot component is 1000 (aka the default one).

$ rtcat -l /localhost/sot.rtc
[...]
 -Execution Context 0
    State  Stopped
    Kind   Periodic
    Rate   1000.0
    Owner  sot

and trying to force the rate using

  ExecutionContext_ptr ecp = get_context(ec_id);
  ecp->set_rate(200);

changes the rate of the execution context, but not the rate of call to the onExecute method.

Do you have the same problem?
Could you please give me an hint on what I should do to correct this issue?

Regards

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.