Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 84

error: no match for 'operator='

$
0
0
Hey, I get this error when building the package: /home/ken/cws/src/mathematics/src/evenNumberGenerator.cpp:24: error: no match for 'operator=' (operand types are 'mathematics::TwoData_>::_data2_type {aka std_msgs::Int8_>}' and 'int') number.data2 = i*2; ^ Basically, I am working on [this issue](http://answers.ros.org/question/266493/can-a-node-listen-to-two-other-nodes/), finally I think I figured it out the correct way of using custom messages in my package but I guess I made some mistake in my code. msg file: ken@ken-Satellite-L500D:~$ cat cws/src/mathematics/msg/TwoData.msg std_msgs/Int8 data1 std_msgs/Int8 data2 Does anyone have an idea? Thanks!

Viewing all articles
Browse latest Browse all 84

Trending Articles