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

bug report rosserial arduino

asked 2012-01-07 20:59:26 -0600

I cannot file a bugreport because I cannot get into Trac, so here it is:

The latest release of rosserial for arduino (downloaded it 30 december) is not capable of subscribing to std_msgs/uint16 or std_msgs/uint8.

I wrote a program to test it. subscribe to and publish the same value. This will not work for uint16, but std_msgs::int16 was okay. The code will compile correctly but on the Arduino it gets misinterpreted (some value is read, which changes also!).

I suspect that the definition of UInt16.h in the std_msgs-directory in Arduino is not okay because it has changed . It used to have definition:

  union {
    signed char real;
    unsigned char base;
  } u_data;

and now not anymore.

But that does not hold because publishing uints with the new version is not a problem!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-01-10 18:03:46 -0600

ahendrix gravatar image

This looks like a duplicate of https://kforge.ros.org/rosserial/trac/ticket/53

edit flag offensive delete link more
1

answered 2012-01-11 18:05:07 -0600

fergs gravatar image

To post to the Trac, you need to create a Kforge account. If you have already created an account and cannot add a bug, let me know so we can get that fixed.

As to the specific bug here, I just patched it in trunk. It will likely take a few days to make it into debs.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-01-07 20:59:26 -0600

Seen: 683 times

Last updated: Jan 11 '12