Typically: "How do I... ", "How can I... " questions
-
yangxingjian95
- Posts: 4
- Joined: 29 Apr 2020, 04:48
Post
by yangxingjian95 »
I tried
Code: Select all
Pub = simROS.advertise('/topic', 'std_msgs/Float32MultiArray')
create an array
and publish it
then I got this error:
Code: Select all
read__std_msgs__Float32MultiArray: expected a table (simROS.publish @ 'RosInterface' plugin)
which I am quite confused about...
-
coppelia
- Site Admin
- Posts: 10375
- Joined: 14 Dec 2012, 00:25
Post
by coppelia »
Hello,
try with:
Code: Select all
local msg={}
msg.data=array
simRos.publish(Pub,msg)
Cheers