try get
http://www.hokuyo-aut.jp/02sensor/07scanner/download/urg_programs_en/index.html
Q:安装完后测试激光。为何非要在root模式才会启用激光,最近在寻找原因~
Explanation of the SCIP 2.0 protocol that is using in URG series.
Library and sample that uses SCIP2.0 protocol are introduced here.
- Sample library for URG
- Validation method of serial device
- Sample program for URG
- About sample programs for URG
- URG library API
- urg_ctrl.h ... C's API
- qrk::UrgCtrl ... C++'s API
- Method to use URG library
- Sample program
- Sample programs on how to use C library
- gd_scan.c ... Get data
- md_scan.c ... Get data (Continuously)
- get_version_lines.c ... Display version information
- get_parameters.c ... Get parameter
- expand_2d.c ... Convert distance data to 2 dimensional co-ordinate to draw graph
- index_convert.c ... Angle conversion
- get_timestamp.c ... Get time stamp
- multi_urg.c ... Get data related to multiple URG
- Sample programs on how to use C++ library
- gdCaptureSample.cpp ... Get data
- mdCaptureSample.cpp ... Get data (Continuously)
- captureIntensitySample.cpp ... Get Intensity data
- viewVvSample.cpp ... Display version information
- viewPpSample.cpp ... Display parameter
- Sample programs on how to use C library
- Application
- Technical document
Generated on Tue Oct 30 2012 14:20:27 by
About sample programs for URG
Sample programs to implement URG's library. These programs can be executed in Windows, Linux and Mac
C++ programs are implemented according to boost and STL. To install boost and SDL please refer below pages.
There is no gurantee that these programs can be execute in any environment. Consider just as a sample program
URG library API
- urg_ctrl.h ... API in C
- qrk::UrgCtrl ... API in C++
Method to use URG library
URG library for Windows.
URG library can be create as lib file and include/ folder.Those created can be used in Windows.
- Build method
- Start Visual Studio 2005 from urg-X.X.X/vc8/c/c_urg.vcproj (as well as urg-X.X.X/vc8/cpp/urg.vcproj), then press F7 to Build.
- Build can be considered as success if Debug/c_urg.lib file and include folder are created.
- How to use library
- use Debug/c_urg.lib and include files.
Using URG library in Linux
- Compiling method
- Compilation can be done with configure && make
- C++ version library cannot be compiled without boost, SDL and SDL_net.
- C++ version library cannot be compiled without boost, SDL and SDL_net.
- Each script in c_urg-config, urg-config can be used after installation using "make install".
% unzip urg-X.X.X.zip % cd urg-X.X.X % ./configure && make # make install
- Compilation can be done with configure && make
- How to use library
- The option necessary for the compilation can be described by using c_urg-config (Or urg-config).
- c_urg_sample.tar.gz ... Sample using C version library.
- urg_sample.tar.gz ... Sample using C++ version library.
- The option necessary for the compilation can be described by using c_urg-config (Or urg-config).
Generated on Tue Oct 30 2012 14:20:26 by
1.8.2-20120930 Some parts of library depend on SDL and boost.
In this section, installation method of each library is explained.
While using package installation on Linux, it is better to use this package tool that manages distribution.(apt, rmp etc)
Install using source code, only when package management is not done.
Install SDL on Linux
- Install SDL using package management tool
- In ubuntu 「libsdl1.2-dev」is installed.
- Install SDL from source.
- Download and compile the file SDL-1.2.XX.tar.gz from SDL site
% tar zxvf SDL-1.2.XX.tar.gz % cd SDL-1.2.XX % ./configure && make % sudo make install
- Download and compile the file SDL-1.2.XX.tar.gz from SDL site
Install Boost on Linux
- Install Boost using package management tool
- In ubuntu 「libboost-dev」and「libboost-regex-dev」is installed.
- Install Boost from source
- Download and compile the file boost-1.37.X from Boost site
% tar zxvf boost_1_37_X.tar.gz % cd boost_1_37_X % ./configure && make % sudo make install % cd /usr/local/include % sudo ln -s boost_1_37_X/boost boost
- Download and compile the file boost-1.37.X from Boost site
Generated on Tue Oct 30 2012 14:20:26 by
1.8.2-20120930

博客介绍了如何在Ubuntu环境下配置和测试Hokuyu URG-04LX-UG01激光雷达。主要内容包括获取相关软件、在不同操作系统下验证串口设备、理解SCIP2.0协议、使用URG库进行数据获取以及样例程序的使用。博主遇到的问题是在非root模式下无法启用激光,目前正探究原因。

994

被折叠的 条评论
为什么被折叠?



