Japanese Page

HASC Tool Page Menu

News

There are "Downloaded version" and "Sourceforge.jp version" in HASC Tool.Downloaded version can be downloaded here. If you want to develop some tools for HASC Tool,please use "Sourceforge.jp version".If you could commit the software you mae , please inform Kawaguchi(Twitter@nkawa).

What's HASC Tool ?

HASC Tool is a tool for the action information processing that HASC (Human Action Sensing Consortium) develops, and it has the following functions. This Tool is developed with Eclipse Plugin.

  • Function related to data
    • Data reception function from Hasclogger
    • Loading scv file data
    • Loading meta data and label data
  • Function related to signal processing
    • Filter that generates simple waveform such as direct current and sign-wave
    • Filter that processes average, variance, and Fourier transform, etc. to inputting waveform
    • You can flexibly combine these filter for different purpose
    • A new filter can be made by an easy coding
  • Label putting function
    • You can put labels for action waveform of acceleration and angular velocity
  • Machine learning
    • Cooperation with machine learning tool WEKA
    • You can use easily various algorithms in WEKA
  • Large-scale data processing function
    • It is possible to automatically select and edit file serves your purpose
    • It is possible to automatically edit file name and file path


You achieves to collect , analyze, use, and evaluate the data using only this tool. The download version of the HASC Tool & HASC sample data can be obtained here.

Setup of Development Environment

Installing Eclipse RCP(3.6)

HascTool is developed by Eclipse RCP(3.6),so first you need to install Eclipse RCP(3.6).Please download Eclipse RCP/Plug-in Developers from eclipse Home page.

If the downloaded file is decompressed, it is installation completion.


Installing Zest plugin for Eclipse RCP(3.6)

  1. Please launch Eclipse RCP.
  2. Select help from menu bar.
  3. And then,select Help > install new software..
  4. Select "Helios - http://download.eclipse.org/releases/helios" from Work with:,and uncheck the "Group items by category".
  5. Type "zest" into the search box,and install three of all plug-in.

Installing Subversive for Eclipse RCP(3.6)

  1. Please launch Eclipse RCP.
  2. Select help from menu bar.
  3. And then,select Help > install new software..
  4. Select "Helios - http://download.eclipse.org/releases/helios" from Work with:,and check the Collaboration > Subversive SVN Team Provider (Incubaion).
  5. Click Next and complete the installation.
  6. Restart Eclipse.
  7. Select Window(from menu bar) > Open Perspective > Other...
  8. Select SVN Repository Exploring.
  9. Install SVNKit 1.*.* Implementation latest version,according to instructions.
  10. When the installation ends, the preparation for acquiring HASCTool from the repository is completed.

Setup of HASC Tool

Installing HASCTool

  1. Please select Window from menu bar.
  2. Open the "SVN Repository Exploring" from Window > Open Persepective > Other...>SVN Repository Exploring.
  3. Right click on the SVN Repositories View and click New > Repository Location....
  4. Type necessary information into New Repository Location Dialog.
  5. Type http://svn.sourceforge.jp/svnroot/hasc/ into URL,and click Finish button.
  6. Select HascTool from /trunk/pc of put in repositry.
  7. Right click on HascTool and select Check Out,then you complete installation HASCTool.

Installing HascLoggerServerPlugin

  1. Please select HascLoggerServerPlugin from /trunk/pc subdirectory of HASC repository.
  2. Right click on HascLoggerServerPlugin and select Check Out,then you complete installation HASCTool.

Installing HascToolDataPrj

  1. HascToolDataPrj is sample action data used by HASC Challenge
  2. Please select HascToolDataPrj from /trunk/pc subdirectory of HASC repository.
  3. Right click on HascToolDataPrj and select Check Out,then you complete installation HASCTool.

Installing HascWekaPrj

  1. Please select HascWekaPrj from /trunk/pc subdirectory of HASC repository.
  2. Right click on HascWekaPrj and select Check Out,then you complete installation HASCTool.

About HASC Tool System

Luanch setting of HASCTool

  1. Please right click on HascTool and select > Run As > Run configuration.. 
  2. Add new configuration into the directry of Eclipse Application.
  3. Main tub
    • Type proper data into Name, Workspace Data Location
    • Select jp.hasc.hasctool.ui.product from Run a product:.
  4. Arguments tub
    • Add " -consoleLog -clean" into Program arguments.
      (-consoleLog:display error log on Eclipse console window :-clean:clear invalid plug-in)
  5. Plug-ins tub
    • Select selected below only from Launch with:
    • Push Deselect All button.
    • Push these check box for plugin at Workspace
      • jp.hasc.hasctool.ui
      • jp.hasc.loggerserver
      • jp.hasc.hasctool.wekaPrj
    • Push Add Required Plug-ins button.

Launch HascTool

  1. Please right click on HascTool Project and select > Run As > Run configuration
  2. If you launch HascTool since the second times, select > Run > Run History is also OK.

RuntimeSampleView

Setting of RuntimeSampleView

  • Window > Show View > select RuntimeSampleView
  • You can set the location of RuntimeSampleView by druging the tab.

View

In HASC Tool, there are some signal wave view.

  • VectorView
  • WaveView
  • SpectrogramView

ProjectExplorer

In this window, you can import and export the directory in Eclipse.

Editor

  • If you open activity data file(*.csv) or label file(*.label), you can edit it by using following function.
  • Sensor X axis:blue,Sensor Y axis:red,Sensor Z axis:green
  • If you push the button(+t, -t, +v, -v) on wave view, a range to display is changed.
  • If you push rt button on wave view, Start time of measurement become 0.0 sec.
  • If you push ?t button on wave view, you can get activity data within the time range which you select.
  • If you push +L button on wave view, the selected time range is written to the label file.
  • If you would like to create label file, please operate it as follows.
    Project Explorer -> csv file -> context menu -> choose "the new making of the label file"

HASCXBD File (Block Diagram)

  • HASCXBD file is block diagram. You can create block diagram by connecting some blocks which you create. By using HASCXBD File, you can do various data processing.
  • To execute HASCXBD file, please select ExecBD button on tool bar.
  • To terminate HASCXBD file, please select StopBD button on tool bar.

HASCXBD File Format

  • <model.BeanBlock> : This tag expresses the block.
    • <name> : This tag expresses the name of block.
    • <class> : This tag expresses the instance of java class.
      • The class needs to refer from JavaBeans which mount jp.hasc.hasctool.runtime.RuntimeBean.
    • <properties> : This tag set your input data to the class.
      • <entry> : On this tag, first element "<string>" is property name, second element is value.
  • <model.Connection> : This tag connect input port <input> and output port <output>.
    • blockName: The name of block <name>
    • portName: The name of port property

Block Class List

  • By double clicking the item in the Block Class List view, you can add a block to the active block diagram editor.
  • You can show the Block Class List view by selecting the menu item: Window > Show View > Block Class List.

About sample code in Hasc Tool

  • jp.hasc.hasctool.ui.views.RuntimeSampleView
    There are some sample codes that use the run time module.
  • jp.hasc.hasctool.core.runtime.filter.SampleFilter1
    This filter is sample filter that use "AbstractFilter". This filter have only 1 input and output.
  • jp.hasc.hasctool.core.runtime.filter.label.SampleLabelingFilter
    This filter is labeling filter by using threshold.

How to use HASC Tool

HascLoggerServer

  • HASC Logger Server receive log file from iPhone's HASC Logger application.
  • To execute HASC Logger Server, please select the directory which store log file and push (H) button.
  • To set up HASC Logger Server, please decide the port number to bind. If you use Mac PC, the port number should be bigger than 1025.
  • To set up HASC Logger, please push "iPhone's Settings > HascLogger" tab and set up Server URL. When you set up "Server URL", please refer to following format.
    Server URL Format: http://(PC IP Address):(port number)/
  • When you upload your log file from iPhone's HASC Logger, you can find your log file on HASC Tool.
  • To terminate HASC Logger Server, please push (H) button again.

Block Diagram Editor

  • Now, there is not wizard which make a new HASCXBD file. To make a new HASCXBD file, please copy an existing HASCXBD file.
  • When you open a HASCXBD file, block editor execute.
  • To edit a block diagram with viewer, please select GraphEdit tab on the HASCXBD file.
    • If you push +B button, a new block is created. Please select the class which the block refer to.
    • You should rename the block, please input the name of block at Name element in Properties. The name of each block have to be unique.
    • To create a new connection, please operate it as follows. While pushing Ctrl(control key), please select input block and output block. After that, please push +C button.
    • If you push Del button, the selected block is deleted.
    • To edit file information such as comment, please push Inf button.
    • By selecting the block, you can setup block property (only String and primitive type).
    • After you edit the block diagram, please push "Ctrl" and "S" buttons and save it. After that, please execute it.
    • To Undo/Redo, please select "HascXBD tab".
  • Time unit is microseconds. If value is 1 second, you should input 1000000.
  • The output port of each block can be connected with some blocks.
  • The input port of each block can be connected with only one block. If the block has some input port such as VectorConcatinator, you should setup the number of input port at inputPortCount property. After that, please input connection the following information about input port such as inputPort[0],inputPort[1],….

Import Sample Data

  1. Select File>New>Project, and create a new Project
  2. Select the Project > import > FileSystem
  3. select Next>From directory and set the directory path
    (You can get HASCToolDataPrj from following page Download.)
  4. Select All>Finish

Export Binary Package

  1. Download Eclipse 3.6 (Helios) RCP MacOSX 64bits ver
  2. Install Delta pack from following pages.
    • http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/index.php#DeltaPack
    • http://aniefer.blogspot.com/2009/06/using-deltapack-in-eclipse-35.html
  3. Please write -Dfile.encoding=UTF8 in eclipse.ini file of Eclipse RCP.
  4. Please delete all file on the export directory.
  5. Open the Product Configuration file(dist/hasctool.eclipse.3.6.product)
    • Setting Dependencies tab's plug-in list (This setting is same to HascTool's run setting.)
    • Execute Eclipse product export wizard link in Overview tab.
      • root directory name : hasctool
      • Please check Export for multiple platforms.
      • Please check win32/x86 or cocoa/x86 as platforms.
  6. Please run (path to HascTool)/dist/after_export.sh in terminal.

How to Create a filter

If you would like to create a new filter, please add your source file to directory "HascTool/src/jp/hasc/hasctool/core/runtime/filter" on Eclipse.

  • filter: Filter that doesn't correspond as follows
  • filter.file: Filter related to file
  • filter.frequency: Filter related to frequency
  • filter.interpolator: Filter related to interpolator
  • filter.label: Filter related to label
  • filter.tick: Filter related to time
  • filter.window: Filter related to window function

How to Create a Button on RuntimeSampleView

Please add your button in the source file "HascTool/src/jp/hasc/hasctool/ui/views/RuntimeSamplesView.java".

Combination of Filters

  • Select the directory in Project Explorer.
  • Right click on the directory>new>File>create ***.hascxbd
  • There are sample files in the directory "HascToolTestPrj/HASCXBD"

Version Information

  • Please select following tab.
    Menu: Help > About HascTool > Installation Details > Plug-ins
  • Please search the row "Privider:hasc.jp, Plug-in Name:HascTool" and you can find HASC Tool version information.

Trouble and Action Method

  • Now, there is not wizard which make a new HASCXBD file. To make a new HASCXBD file, please copy an existing HASCXBD file.
  • Now, You can not save your block layout. When you open the HASCXBD file again, block layout is reset.
  • In wave view of LabelEditor, if both of label edge are not within the range of window, you can not find this label in the window.
  • When you open a file on Project Explorer, there is a possibility to open it by another editor. In this case, please right click it and select "Open With" tab and select editor.
  • If you edit some files on the outside, you should refresh Project Explorer.
  • Sometimes, the problem not changing from the state of Refreshing workspace is happened.
    • In this case, you should push StopBD button.
Back to Top