-
Notifications
You must be signed in to change notification settings - Fork 176
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
i can't find the left/right wheel topic on turtlebot Kobuki ? #386
Comments
Been a while, but I think that that pair is what routes directly into the protocol to the Kobuki ECU. You should be able to compute single wheel rotational speeds and then transform them into the above form (base linear velocity/rotational velocity) using the Kobuki base parameters (wheel diameter, ...). Likely to be some error coming from the base parameters, but it should be fairly negligible. |
Ok i have some question ( please have in mind that i am new at ROS ). |
hello, were you able to find this out? How to control the different wheels separately? |
You can't control them directly - the kobuki accepts commands that control the base, not the individual wheels. These control commands, at the lowest level we have access to (firmware), are accepted in the the form of a radius / speed pair. Depending on what kind of control you're attempting to perform, you could reverse engineer the process. i.e. convert your wheel commands to the appropriate radius/speed tuple (or velocity/angular velocity pair) and send that. Refer to the documentation on conversions for all the values you need. |
Thanks alot @stonier. indeed i want something like this. Where exactly do I put the code to achieve this? What i want is to have the robot rotate 10 or 20 or even 30 degrees about its axis and then pause for about half a minute. then go on till i stop it. Just issuing commands to turtlebot2 only rotates one wheel and the robot somehow displaces |
Seems like something is wrong - you should be able to perfectly manage that with the control paradigm the ros1 node has. I haven't looked / tested the ros1 code for years (and unable to check on melodic right now) so can't help you out there right now. However, you could try to compile and run the simple loop demo (no ros1 involved and that api will work against melodic's c++ kobuki_driver library). Source code is here. https://github.com/kobuki-base/kobuki_core/blob/devel/kobuki_driver/src/demos/simple_loop.cpp Just copy/paste it into your build environment somewhere. It controls kobuki around a virtual square, with pure rotations of the sort you want at the corners. This will at least tell you whether there's a problem with your kobuki/kobuki driver or it's some bug in the ros node wrapper around it. |
ok i will try this. No, the turtlebot2 and kobuki are running on ROS Indigo Ubuntu 14.04. Couldnot find a way to handle that with the control paradigm ROS1 node provides. Any suggestions in that direction would also be most welcome as I have most code built in ROS with python. Still my C++ is not that awful. It should at least suffice to handle this task. What I did was I practically sent a Twist Object with just the angular velocity and it seems only one wheel is turning and somehow the robot displaces. In ROS melodic I have gazebo. Thats where I want to first try this then port it to the hardware. |
I tried the code sample you gave me on both ubuntu 18.04 and 14.04 but it gives errors.
for Ubuntu 18.04, i guess it is understandable as it does not have kobuki core library suit, none the less, i will add it here: So I simple copied the simple_loop.cpp file to anyone of the packages got after following This Link Which basically summarizes this post.
|
Intent was to copy the file across and compile, not entire repo. You need to either add it to your cmake (easiest way) or make sure you point |
Hello. I simply copied the simple_loop.cpp. I already had a similar kobuki repo on the indigo machine. |
I suspect you missed adding dependencies to the target in cmake. |
Hello, sorry for the tardy reply. did not have access to the desktop for a while. Apparently the issue was that my system has |
Hi, the "/cmd_vel_mux/input/teleop" topic controls linear velocity and angular velocity of the turtlebot kobuki,
What i am trying to find is the topic that controls the rotational speed of the left/right wheel of the turtlebot kobuki in order to implement an LQ regulator to control the speed loop of the turtlebot.
The text was updated successfully, but these errors were encountered: