[ros-users] How to set the value in an array for a message

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
+ (text/html)
このメッセージを削除
このメッセージに返信
著者: User discussions
日付:  
To: ros-users@code.ros.org
題目: [ros-users] How to set the value in an array for a message
I have a problem of setting the value of an array in a message. I write a node that used to talk to a LRF and publish the topic of the message type of LaserScan. However, I can not set the value of the array msg.ranges[] in this message. The node break when I trying to give a value to an element of that array.