Skip to content

Use p2os to control motors individually #42

@driverac10

Description

@driverac10

Hi,

I'm using a Pioneer3 AT, but my command order is not the topic /cmd_vel. I need to send the velocities to both the right and left wheels rather than their result on the global movement of the robot.

After reading carefully the code, I understand a serial-port communication is used to give the motors the commands needed.

However, as it is referenced in line 228 on p2os.cc only a "non-direct wheel control" is implemented (through the /cmd_vel topic). Besides, in the same file this implementation is limited by brackets (I mean these: {...}), from lines 227 to 267, which could mean the other option (what I need, the "direct wheel control") used to be implemented as well. In addition, there is a parameter: "direct_wheel_vel_control" declared as an atribute of the P2OSNode class in line 171 which is never initializated.

Thus, my question is:
Am I right, and both control schemes were implemented in a previous version of the package? In this case, where could I find the "direct_wheel_vel_control"? And if I'm wrong, there is at least an afordable way to implement this kind of control using this package?

Thanks!

David

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions