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

Problems controlling the model #19

Open
migranram opened this issue Dec 29, 2020 · 2 comments
Open

Problems controlling the model #19

migranram opened this issue Dec 29, 2020 · 2 comments

Comments

@migranram
Copy link

Hello I have been trying to use your mode for an university project, but unfortunately we haven't been able to control it. The robot doesn't seem to respond to any rostopic pub we make for the controllers.
We realized that there was an error while running the .launch:

GazeboRosControlPlugin missing <legacyModeNS> while using DefaultRobotHWSim, defaults to true

But it Gazebo runs anyway. We have tried in Kinectic and Lunar.

Any idea of what could be going wrong?

Cumprimentos de Sevilha, Espanha.

@GuiRitter
Copy link
Owner

Hello and thanks for taking an interest in my project!

This is not an error that I remember coming across. First, I would like to know which *.launch file you're trying to launch. This is because not all *.launch files are meant to be ran. Some are only meant to be included in others.

Second, I searched a little and I came across this. In short, edit xacro/main.urdf.xacro and add <legacyModeNS>true</legacyModeNS> below <robotNamespace>/open_base</robotNamespace> (almost at the end of the file).

See if it works. I suspect it happened to you and not me because maybe you have more than one ROS distro installed and are sourcing setups from different distros or maybe you have a Gazebo distro installed manually and ROS is referencing that instead of its own Gazebo distro.

Try that file change and let me know if it works. Anything else, just ask. Best of luck!

@migranram
Copy link
Author

Thanks for your answer!!

First of all the problem about the controllers is already solved. We isolated the urdf model and added the actuators just the way you did. It is the same.

But we noticed a couple more problems. The vehicule seems to move by itself, it is kind of drifting randomly. We tried to add some friction to the joints in case that was the reason and it seemed to solved it partially.
Then we added the kinematics posted in your repo to move the robot with Vx and Vy, but for whatever reason, the X component is not working properly.

Vy works just fine, since it is only using 2 motors, but the Vx seems to drift too and we don't understand why. Our project is to control this robot and make some path finding and computer vision work with it and ROS, so we don't really know much about gazebo, we are just discovering everything now.

Any ideas on our latest problem? We cannot make a reliable controller if the velocities don't work properly and we don't know if it's a known problem of Gazebo or something.

Muito obrigado!!

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

2 participants