Skip to content

Publish Wheel Velocity to Hardware in DiffDriveController [Question] #612

@Doctor-N0

Description

@Doctor-N0

I would like to send the desired speeds of the left and right wheels calculated in the DiffDriveController to my PLC via the OPC-UA protocol. In the diff_drive_controller.cpp in line 802 this variable is assigned to controller_state_pub_.

controller_state_pub_->msg_.desired.velocities[i + wheel_joints_size_] = vel_right_desired;

Therefore, I would like to ask what is the recommended approach to send this variable to the OPC-UA node? According to the documentation only the Odometry is published, and not the wheels speed, or is it? Is there a way to publish this variable so that the OPC Node can access it? Or should I import the code of the OPC-UA node directly into the controller?

Thanks a lot for your answer!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions