Git Product home page Git Product logo

Comments (3)

Horisu avatar Horisu commented on August 26, 2024

ref_strokesは上半身の記憶しておいた指令値を入れるためサイズは28になるが、
下半身を指令しないと,UnusedAngle2Stroke.cc内で下半身に相当するstroke値(index[28]と[29])が入れられてしまって駄目になっていたようです。
下半身ストローク値に0xffffを入れる作業を除きたいのですが自動生成のコード内なので上手い方法が見つかりません。

from aero-ros-pkg.

sasabot avatar sasabot commented on August 26, 2024

実装の仕方のメールを今週の頭に送ったはずなので確認してください。確認した上で上手く行っていないなら教えてください。

基本的にストローク配列をいじくるのはおすすめしません。
やるならセンサ値をseedから取得した段階で専用配列にコピーするのが良いと思います。

つまり、RAWのIndexを今の返り値に合わせて、CANのIndexを今までのストローク配列と同じ対応にして、AeroControllerProtoのget_data内でセンサーのRAWIndexを見ながらセンサー配列を取得すれば問題ないはずです。

センサーのありなしはConstants.hhで#define宣言して、コントローラ側でifdefしておけば切り替えられると思います。

from aero-ros-pkg.

sasabot avatar sasabot commented on August 26, 2024

と、思ったけど、これセンサ値とストローク配列云々とは関係ない話ですね。

多分だけど、自動生成ファイルのAeroControllers.ccあたりが怪しい気がします。そこでupperのref_vectorの配列数を直さないとうまく動かなかった覚えがなんとなくあります。resize(AERO_UPPER_DOF)をresize(AERO_DOF)にすると動くかな? もう一箇所くらい自動生成部分で直す必要があったかも。(これ以前気づいて直すの忘れていた問題かもしれない、ごめん)

from aero-ros-pkg.

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.