-
Notifications
You must be signed in to change notification settings - Fork 12
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
Motors can't move #13
Comments
Hi, sorry did not see
There is already a (the?) problem. You set ROS_IP to the ip the interface you use has. check it with
The first best way to check if ros is working is to |
I have a little bash function in my bashrc, maybe it is of any use, if you are bored putting Actually there should be such function on the brick as well, check the prints after you log in. set_rosip <successfull prints if 1> <error prints if 1> in my case it would be
Code:
|
Hi,
And the command
My red is:
I did ping between them and then i did With the last changes when i running some these files are not found. Maybe do you have the initial code? because i think the error is the communication bewteen brick and pc. I need a lot of help. |
It expects the Interface (wlan0, eth0 ... ), you entered the IP (192.168.10.10) And I have not told you that both scripts are the same, just that there is already a command for easily setting the ROS_IP on the brick. The script I posted was for the PC. You can use it, if you do not want to do:
in every terminal you want to use with ROS. instead you do (wlan0 is an example!, check your interface name!) I recommend to get a Router with a DNS (if you have an old one you can check if it supports OpenWRT (alternative firmware) which is shipped with a DNS server) |
Sorry for asking again. I connect pc and brick with usb, so the ip dont change. Is this setting correct for communication between devices?
In Brick:
In PC: Run
I connect motor to port A and B, then i launch motors.launch but nothing happens, then i publish: So i dont undertand what I am doing wrong, for that reason I think my configuration is not correct. |
And when I stop ev3_manager node if I launch motors.launch there is not error. |
Hi again, Check if that solves the issues. |
Just to be sure try to publish a rostopic on pc and try to echo it on the brick and the other way round to be sure communication is working properly. |
Hello,
I installed the packages to control ev3 then I launched the motors but it doesn't work. I did everything that is mentioned in Geting Started
In brick:
I set ROS_IP= "IP of my pc"
ev3_manager
In PC:
roslaunch motors.launch ev3_hostname:=ev3dev
Then I start "rqt" to try move motors with any value in "Message Publisher" i get this http://imgur.com/a/MQLcd and the motors don't move.
When i do
rostopic echo /ev3dev/joint_states
the data don't change and i get this:The only data that change are sec and nsecs. I delete the tag mentioned in # 11 but it does not work because topics "OutPort#" don't appear.
Try several times, with variations on the other ports and topics but nothing moves the motors.
do i need to modify any file? i don't understand why they don't work. I read other issues but don't find other similary error.
I hope that you can help me.
Thank you
The text was updated successfully, but these errors were encountered: