Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoder Use (EMOD) in MBS file #13

Open
Myzhar opened this issue Aug 30, 2016 · 6 comments
Open

Encoder Use (EMOD) in MBS file #13

Myzhar opened this issue Aug 30, 2016 · 6 comments

Comments

@Myzhar
Copy link

Myzhar commented Aug 30, 2016

Hello,

I'm not sure about the correctness of the following line:
https://github.com/g/roboteq/blob/indigo-devel/roboteq_driver/mbs/script.mbs#L30

I don't understand why you set EMOD to 50, while according to manual (p210) it should be
aa + mot1 * 16 + mot2 * 32

so

18 for motor 1 with feedback
34 for motor 2 with feedback

Walter

@Myzhar
Copy link
Author

Myzhar commented Aug 30, 2016

Hi,

I have found a post on the RoboteQ's forum that confirms my hypothesis:
http://www.roboteq.com/index.php/forum/9-controller-configuration-operation/29529115-encoder-setup-after-controller-reset

@romainreignier
Copy link

I would be also interested in the answer.

@rbonghi
Copy link

rbonghi commented Jul 12, 2017

I @romainreignier I've fixed the @Myzhar with a new node in ROS https://github.com/rbonghi/roboteq_control This node works with ROS control and with the dynamic reconfigurator you can dinamically update the roboteq configuration. It has look like RoboRun+

@romainreignier
Copy link

@rbonghi yes, I have seen your node. The concept to use only the serial comm and no script and the dynamic reconfigure for everything is very interesting.
But I do not like in your code that you call the nh.getParam() every time in each callback because it takes some time so it is not very efficient. And I do not have the time right now to modify it.

@rbonghi
Copy link

rbonghi commented Jul 12, 2017

yes, I know only this way :-( to dynamically update the the parameters when the motors run. If you know other solution I am interested to change this approach.

At this time I've tested with a Jetson TX2 and works better without delay.

@romainreignier
Copy link

This issue is not the right place for this discussion. But usually we use class members updated in the dynamic_reconfigure callback for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants