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
roslaunch ERROR #27
Comments
Can you "roscd ros_arduino_bridge" without error? |
It sounds like the arduino_node.py file is not executable for you which is odd. Try the following commands: roscd ros_arduino_python/nodes |
I tried these commands, but it output:
|
Is your Arduino really connected to /dev/ttyACM0? Make sure you have no other USB devices connected and try again. Also, try increasing the timeout value in your arduino_params.yaml file. I think the default is 0.1 seconds which is a little too short. Bump it up to 0.5 or even 1.0 and this will give the driver more time to wake up the serial port. |
Yes, I'm sure my Arduino is connected to /dev/ttyACM0 and no other USB devices. Besides, I increase the timeout value, but it still doesn't work. I looked through source codes and debugged them, and I think the problem may come from the function |
Can you please give me some more info about your setup? (1) What version of ROS are you using, (2) what branch of the ros_arduino_bridge package are you using (e.g. hydro-devel, indigo-devel) , (3) what type of Arduino are you using, (4) what kind of computer are you running ROS on (e.g. laptop versus Raspberry Pi etc), and (5) what version of Python are you using (e.g. 2.4 versus 3). |
Info you want to know is as follows:
|
Please try the indigo-devel branch since the master branch is under active development and is not guaranteed to work. |
@sunlcy Does that mean things are working for you now with the indigo-devel branch? |
@pirobot Very sorry replying to you so late! I need some time to make the indigo-devel branch compatible with my hardware, and I am a little busy recently. I'm trying to spare time to do it, and I will tell you the result as soon as I finish it. |
@pirobot I tested the indigo-devel branch on my computer and arduino board, it works fine. So I think there must be some bugs about the baud rate in the master branch. Anywhere, thanks your help very much! 😄 |
That's good to hear! I have put a note on top of the master branch README file warning people not to use it. I am adding a number of new features to master and testing them out before merging them to the indigo-devel branch later on. |
问题,咋改Traceback (most recent call last): |
When I use
roslaunch ros_arduino_python arduino.launch
, I get this: ERROR: cannot launch node of type [ros_arduino_python/arduino_node.py]: can't locate node [arduino_node.py] in package [ros_arduino_python].The text was updated successfully, but these errors were encountered: