Giter Club home page Giter Club logo

Comments (9)

gavanderhoorn avatar gavanderhoorn commented on May 26, 2024

I'm not quite sure I understand what you're trying to do. Could you elaborate a bit?

from abb.

gavanderhoorn avatar gavanderhoorn commented on May 26, 2024

Are you asking why message.velocity is not populated?

from abb.

merium avatar merium commented on May 26, 2024

Yes I'm asking why message.velocity is not populated and how to do so ?

from abb.

gavanderhoorn avatar gavanderhoorn commented on May 26, 2024

Did you add this line:

UnpackRawBytes raw_message.data, 29, message.velocity, \Float4;

Because I can't find it in the current version (and it's also not going to result in correct deserialisation).

And with 'not populated', do you mean no value at all (which would be strange), or a 0.0?

from abb.

merium avatar merium commented on May 26, 2024

Yes I've tried this line and it shows 0.0. I've tried replacing 29 up to 33 and all it shows is 0.0, even when I'm sending data in velocity on the ROS side.

from abb.

gavanderhoorn avatar gavanderhoorn commented on May 26, 2024

Those indices are for the entries in the joint_data array that are unused in the abb_driver:

Skip bytes 29-44. UNUSED. Reserved for Joints 7-10

They are set to 0.0 by the ROS side, so I'm not surprised that you get 0.0 after deserialisation.

As to why the 'last' velocity field is 0.0: that is set by the ROS side as well, as the abb_driver uses the duration field. See abb_driver/src/abb_joint_downloader_node.cpp, lines 68 to 73 and abb_driver/rapid/ROS_motion.mod, line 65.

from abb.

merium avatar merium commented on May 26, 2024

I see, so I'll have to modify code on both sides to be able to send velocity. Thanks!

from abb.

gavanderhoorn avatar gavanderhoorn commented on May 26, 2024

I see, so I'll have to modify code on both sides to be able to send velocity

No, just the ROS side, and specifically those lines that I linked you to. The RAPID code already deserialises the field, but it's just set to 0.0 right now.

Note btw that the duration field is essentially somewhat of the inverse of velocity field, and also that velocity is not a joint velocity in rad/s or deg/s, but is supposed to be a ratio encoding the max velocity for the controller to attain over the associated traj segment (see also Message Structures of the ROS-Industrial Simple Message Protocol - Message Definitions - JOINT_TRAJ_PT).

from abb.

gavanderhoorn avatar gavanderhoorn commented on May 26, 2024

As I have the impression that your question has been answered, I'm going to close this issue.

If you feel that is not correct, feel free to re-open it.

from abb.

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.