ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Daniel_2210's profile - activity

2020-09-14 05:50:32 -0500 received badge  Taxonomist
2016-06-27 22:58:23 -0500 received badge  Guru (source)
2016-06-27 22:58:23 -0500 received badge  Great Answer (source)
2016-06-13 21:40:56 -0500 received badge  Good Question (source)
2016-04-12 21:36:09 -0500 received badge  Nice Question (source)
2016-03-29 11:47:22 -0500 received badge  Enlightened (source)
2016-03-29 11:47:22 -0500 received badge  Good Answer (source)
2016-01-14 15:35:04 -0500 received badge  Student (source)
2016-01-14 15:34:41 -0500 received badge  Nice Answer (source)
2014-05-24 14:02:46 -0500 received badge  Famous Question (source)
2014-05-22 06:46:10 -0500 received badge  Teacher (source)
2014-05-22 06:46:10 -0500 received badge  Self-Learner (source)
2014-05-21 01:28:22 -0500 answered a question rosserial arduino can't connect (Arduino micro)

I have fixed it. What you need to do is.

The "Hello World" example seems to be working fine. The only change you must to your Arduino code on Micro or just the normal one, I only have a Micro is to add

#define USE_USBCON

just before

#include <ros.h>

That's it.

2014-05-20 23:58:49 -0500 received badge  Supporter (source)
2014-05-20 23:45:49 -0500 received badge  Notable Question (source)
2014-05-20 04:47:58 -0500 commented question rosserial arduino can't connect (Arduino micro)

I have already reinstalled ROS now and that still didn't fixed it.

2014-05-20 04:46:59 -0500 received badge  Popular Question (source)
2014-05-13 02:30:31 -0500 asked a question rosserial arduino can't connect (Arduino micro)

Hi all,

I have a problem with rosserial_arduino. The demo hello world program compiles fine in the arduino IDE.

#include <ros.h>
#include <std_msgs/String.h>

ros::NodeHandle  nh;

std_msgs::String str_msg;
ros::Publisher chatter("chatter", &str_msg);

char hello[13] = "hello world!";

void setup()
{
  nh.initNode();
  nh.advertise(chatter);
}

void loop()
{
  str_msg.data = hello;
  chatter.publish( &str_msg );
  nh.spinOnce();
  delay(1000);
}

The problem that I have is that ros can't connect to the arduino.

When I run this "rosrun rosserial_python serial_node.py /dev/ttyACM0" I get the error:

[INFO] [WallTime: 1399983521.604184] ROS Serial Python Node
[INFO] [WallTime: 1399983521.617853] Connecting to /dev/ttyACM0 at 57600 baud
[ERROR] [WallTime: 1399983538.726124] Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino

When I run this "rosrun rosserial_server serial_node /dtyACM0" I get these messsages:

[ INFO] [1399983906.306684433]: Opening serial port.
[ INFO] [1399983906.306988104]: Starting session.
[ WARN] [1399983907.309690537]: Sync with device lost.

I also have added my user to the usergroups dialout and tty. That fixes the problem that I can access the port without admin(sudo) right.

I use this in combination with an Arduino Micro but it's the same as an Arduino Uno but then a bit smaller.

I hope you can help me with my problem.