fast Hokuyo for detect Human

Typically: "How do I... ", "How can I... " questions
Post Reply
heeva
Posts: 4
Joined: 20 Jun 2019, 11:01

fast Hokuyo for detect Human

Post by heeva »

Hello,
I try to detect a human near the Band with a fast hokuyo sensor
but i just get nil from Hokuyo and I dont know what is my mistake
here is my code

Code: Select all

data=sim.packFloatTable(measuredData)

if data~=-1 then
    sim.clearStringSignal(data)
end

if data then
    sim.setStringSignal("measuredDataAtThisTime",data)
    print(measuredDataAtThisTime)---> nil
end
andere question:
a human should be a child from Hokuyo?
and
where can i read this data? I should be defined a dummy?
I will be grateful if someone helps me

fferri
Posts: 1217
Joined: 09 Sep 2013, 19:28

Re: fast Hokuyo for detect Human

Post by fferri »

measuredDataAtThisTime is not a variable.

The variable you want to use is probably data.

Make sure you understand the basics of the Lua programming language (which is not that different from other scripting languages such as Python, Ruby or JavaScript).

Post Reply