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

ElTonno's profile - activity

2017-04-20 15:13:21 -0500 received badge  Famous Question (source)
2016-03-21 19:51:31 -0500 received badge  Notable Question (source)
2016-03-21 04:27:23 -0500 received badge  Popular Question (source)
2016-03-18 07:43:58 -0500 asked a question publish c structs

Hey guys,

I'm searching for a way to publish my own c struct. In my code I use a struct like:

struct test {
  int a;
  int b;
  int c;
  float d;
} ;

and I want a message that uses two integers and one "test". Of course I could use a message that uses five integers and one float to solve the problem but this is not a very well solution. I also tried MessagesSerializationAndAdaptingTypes of the roswiki, but either I did something wrong or it does not help with this problem.

If there is already a post with this topic I'm sorry to ask this again, but I was not able to find it.

Best
ElTonno