Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Hokuyo Laser Scanner Support

Send us your requests for enhancements (RFEs)

Hokuyo Laser Scanner Support

Postby b34npour » Fri Jun 24, 2016 3:10 pm

I recently acquired a Hokuyo UTM-30LX laser range finder: http://www.hokuyo-aut.jp/02sensor/07sca ... /utm-30lx/

I know there's already a CHOP for the Leuze ROD4, so my hope is that the road to support for the Hokuyo UTM-30LX is already partially paved. I'd love to help develop this with Derivative if anyone is interested in helping me make it happen.

Hokuyo provides a lot of source code examples for their laser range finders, so I'm thinking this might be a good place to start: http://urgnetwork.sourceforge.net/html/

There's also a document that explains the range finder's communication protocol, so maybe I can just parse the raw data streaming over USB? Here's the protocol: http://www.hokuyo-aut.jp/02sensor/07sca ... SCIP20.pdf

Would love to hear anyone's thoughts on this.
b34npour
 
Posts: 28
Joined: Wed Jan 09, 2013 8:01 pm

Re: Hokuyo Laser Scanner Support

Postby bLackburst » Wed Jul 27, 2016 6:40 am

I'm interested to hear about your experience with the Hokuyo. They seem to be quite a bit cheaper than the Leuze products.
bLackburst
 
Posts: 334
Joined: Thu Sep 01, 2011 3:56 am
Location: Melbourne, Australia

Re: Hokuyo Laser Scanner Support

Postby siuma412miki » Mon Aug 01, 2016 9:54 pm

Hi
I also interested in Hokuyo laser range finder function in TD.
I usually use this sensor using with another software.
And it send sensor data as OSC to TD.

If we can use native Hokuyo node in TD, It is very useful.
Derivative think that,
if more user have request about Hokuyo node. They can provide it.
siuma412miki
 
Posts: 3
Joined: Fri Apr 19, 2013 5:11 am
Location: Japan

Re: Hokuyo Laser Scanner Support

Postby b34npour » Mon Sep 12, 2016 11:27 pm

siuma412miki wrote:I usually use this sensor using with another software.
And it send sensor data as OSC to TD.


That's awesome to hear that you've sent data from the Hokuyo to Touch via OSC before. Would you be willing to share your approach to achieve OSC out with the Hokuyo? It might help me work out a native Touchdesigner solution.
b34npour
 
Posts: 28
Joined: Wed Jan 09, 2013 8:01 pm

Re: Hokuyo Laser Scanner Support

Postby b34npour » Wed May 31, 2017 7:20 pm

I dug back into this today to build an alternative solution.

First I tried OSC, but it didn't seem to have low enough latency with this much data being sent, so I switched to writing an external command-line application to read the Hokuyo sensor, then send the values to Touchdesigner via shared memory (https://www.derivative.ca/wiki088/index ... emory_CHOP).

It isn't the most elegant solution, but it seems to be lower-latency than OSC.

Here's my Visual Studio 2017 solution if anyone is interested! It's not the cleanest code ever, but seems to work well:
urg_library-sharedMemToTouch.zip
(18.41 MiB) Downloaded 251 times


Once compiled, run "get_distance.exe" from the command line followed by your desired memory address name as the first argument, then "-s COM1" (or whatever COM port your Hokuyo is on).

Example: get_distance.exe myMemoryAddress -s COM1

Then create a Shared Mem In CHOP in Touch, and type in the memory address name you ran the program with.

Hope this helps some people out! Eventually it'd be awesome to have this in a CPlusPlus CHOP .dll, but this seems to work in the meantime.

Also, Derivative Admins - I'm not sure if posting source code from the Shared Mem examples is ok on the forums, let me know if it's not and I'll remove.
b34npour
 
Posts: 28
Joined: Wed Jan 09, 2013 8:01 pm

Re: Hokuyo Laser Scanner Support

Postby malcolm » Thu Jun 01, 2017 4:51 pm

It's perfectly fine, thanks for sharing!
User avatar
malcolm
Staff
 
Posts: 4400
Joined: Tue Nov 13, 2007 1:11 am

Re: Hokuyo Laser Scanner Support

Postby maotik » Tue Jun 20, 2017 5:39 pm

Hello,

Do you think that would work with this model ?
http://www.robotshop.com/en/hokuyo-ust- ... inder.html

Thanks

Mathieu
maotik
 
Posts: 21
Joined: Fri Oct 21, 2011 5:50 pm

Re: Hokuyo Laser Scanner Support

Postby PiveJuma23 » Thu Feb 21, 2019 3:00 pm

Hi, Does anybody try this solution? I´m getting the next error when I try to execute the program:

"error detaching memory
closing urg driver
exiting"

I appreciate your help :D
PiveJuma23
 
Posts: 5
Joined: Tue May 09, 2017 12:27 pm

Re: Hokuyo Laser Scanner Support

Postby eric.b » Thu Feb 21, 2019 5:31 pm

If you're looking to use a Hokuyo device in TouchDesigner you should have a look at the Hokuyo CHOP in 099.
User avatar
eric.b
Staff
 
Posts: 114
Joined: Mon Jun 13, 2016 3:53 pm
Location: Toronto

Re: Hokuyo Laser Scanner Support

Postby PiveJuma23 » Thu Feb 21, 2019 7:14 pm

eric.b wrote:If you're looking to use a Hokuyo device in TouchDesigner you should have a look at the Hokuyo CHOP in 099.



I´ve already tried this CHOP, but it doesn´t detect the sensor and I have to move around the start step parameters.

Also when I open again my toe file, nothing happens. I,ve already tested the sensor with Urg_Benri software and everything looks fine.

Looks like a software trouble.
PiveJuma23
 
Posts: 5
Joined: Tue May 09, 2017 12:27 pm

Next

Return to Wishlist and RFEs

Who is online

Users browsing this forum: No registered users and 3 guests

cron