フォーラムへの返信

15件の投稿を表示中 - 346 - 360件目 (全559件中)
  • 投稿者
    投稿
  • 返信先: SemiBlindICA Connection #992
    匿名
    参加者

    Thanks for the fast reply!

    I tried this connection scheme. In this case, the system is very slow. I can say that it hangs. Even if we set the parameter ROS_LOOP_RATE much less than the default value.

    返信先: harktool5の設定について #989
    匿名
    参加者

    お問い合わせありがとうございます。

    TF Calculation Type の設定から、録音したTSP信号を用いて伝達関数を作成していることと推測されます。
    その場合、録音したファイルをSound source positionsのWave File Pathに指定する必要がございます。
    また、TSP信号の代わりに幾何計算(シミュレーション)で伝達関数を作成することが可能です。
    TF Calculation TypeをUse Geometric Calculationに設定することで、幾何計算による伝達関数が作成されます。

    詳細については下記ドキュメントに記載してありますので、ご参照いただければ幸いです。

    https://www.hark.jp/document/packages/harktool5-gui-ja/harktool5-gui.html

    また、過去に同様のお問い合わせがありましたので、こちらもご参考までに。

    https://hark.jp/forums/topic/%E4%BC%9D%E9%81%94%E9%96%A2%E6%95%B0%E3%81%AE%E7%94%9F%E6%88%90%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6/

    以上、よろしくお願いいたします。

    返信先: SemiBlindICA Connection #988
    匿名
    参加者

    Thank you for your inquiry.

    I have confirmed your screen shot. The main cause is that the HarkMsgsStreamFromRos node is placed on the MAIN sheet. Please move the HarkMsgsStreamFromRos node to the MAIN_LOOP sheet and connect MATOUT terminal to the MultiFFT node (The side connected to REFERENCE) on the same sheet. It takes iterations to perform frame-by-frame calculations.

    Best regards,

    匿名
    参加者

    このようなエラーが出てしまったのですがどうすれば良いですか?

    返信先: problem with wios #3107
    匿名
    参加者

    Thank you for reporting this error.
    And, I appreciate your help confirming the operation of the debug version.

    It has been confirmed that this error is caused by compiler optimization. Currently, we are preparing a package for publishing with a reduced optimization level as a workaround. It will be released in the next few days.

    The version with the bug fixed will be “WIOS 3.0.7.1”. Please wait for it to be posted on “News” page.

    Best regards,

    返信先: Generating transfer function #973
    匿名
    参加者

    Ok

    Thank you for your reply

    匿名
    参加者

    ご回答ありがとうございます
    説明通りにやったら出来ました

    匿名
    参加者

    お問い合わせありがとうございます。
    HARKサポートチームです。

    添付画像を拝見したところ、
    エラーログに “No output terminal in network ‘MAIN'” と表示されており、
    LOOP0シートにてAudioStreamFromMicノードのNOT_EOF端子と
    DisplayLocailzationノードのOUTPUT端子が設定されていないことが原因のように見受けられます。
    各端子部分を右クリックして、NOT_EOF端子をCondition、OUTPUT端子をOutputに設定してください。

    また、以前に同様のお問い合わせがございましたので、そちらもご参照いただければと思います。

    https://hark.jp/forums/topic/%E9%9F%B3%E6%BA%90%E5%AE%9A%E4%BD%8D%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6/

    以上、よろしくお願いいたします。

    返信先: Generating transfer function #959
    匿名
    参加者

    I prepared three TSP files recorded at different locations with different microphone arrays. The figure below shows an excerpt of one channel, which you open in Audacity to see the spectrogram.

    In the two examples below you will see frequency components other than the original TSP signal. This is due to harmonics or reflected waves. It would be desirable to set the largest volume without such extra information.
    The following three examples are TSP files that function without any problems in performance. In other words, it is the limit value of the volume that harmonics and reflected waves are barely visible as shown below. Be careful not to make the line due to harmonics or reflected waves more strongly than that. It is most desirable to adjust to the invisible state as in the example at the top.

    tsp.png

    匿名
    参加者

    お問い合わせありがとうございます。

    DisplayLocalization ノード等へ入力されていますので、 PyCodeExecutor3 ノードの出力は Vector<Source> 型になっていなければなりません。全てのノードについて入出力の型が掲載されていますので、詳細はHARK-Documentのノードリファレンスをご参照ください。

    つまり、今回のケースは出力端子の型設定を
    self.outputTypes=("prime_source",)
    ではなく
    self.outputTypes=("vector_source",)
    と設定する必要が御座います。

    それに伴い
    self.outputValues["output"] = self.input[0]
    と書かれている行についても次のようにする必要が御座います。
    self.outputValues["output"] = [self.input[0]]
    更に、入力されたVectorサイズが0である(定位無しの)可能性が御座いますので、次のようにしていなければ実行中にクラッシュする可能性が御座います。
    self.outputValues["output"] = [] if len(self.input)<1 else [self.input[0]]

    また、余談ですが

    self.outputValues["output"] = self.input
    self.outputValues["output"] = self.input[0]

    のように同一出力端子に2度書き込みを行った場合、
    後で書き込まれた値のみが使われます。
    calculate() メソッドを抜ける時点で設定した型と
    最終的に書き込まれている型が不一致している場合には
    エラーが発生しますのでご注意ください。

    以上、よろしくお願い致します。

    返信先: problem with wios #951
    匿名
    参加者

    @Masayuki Takigahira: I understood the wios_check_results and already tried -c 2 and -f 48000 together. What I did not think of was making the tsp a 48kHz stereo sound before playback with wios. Sadly, the results are the same (see attachment).

    返信先: problem with wios #950
    匿名
    参加者

    > Unfortunately, it did not give me any new information on how to overcome my problem with wios (see results of my wios_check in attachments).

    @paul: No. I saw your results and understood at least one of the causes.

    
    You can use following channels argument with the wios command.
        -c <channels> (same as --channels <channels>)
        *) Please select one of ( 2 ) as <channels>.
    

    This means that your device only supports 2 channels. If your device supports 1 or 2 channels, you will see the following message:

    
    You can use following channels argument with the wios command.
        -c <channels> (same as --channels <channels>)
        *) Please select one of ( 1-2 ) as <channels>.
    

    Also, while wios defaults to 16 kHz for the sampling rate, your device does not support 16 kHz. Your device supports only the sampling rates below. In other words, 44.1 kHz, 48 kHz, etc. should be selected.

    your playback device:

    
    You can use following sampling rate argument with the wios command.
        -f <rate> (same as --frequency <rate>)
        *) Please select one of ( 44100 48000 96000 192000 ) as <rate>.
    

    your capture device:

    
    You can use following sampling rate argument with the wios command.
        -f <rate> (same as --frequency <rate>)
        *) Please select one of ( 44100 48000 96000 ) as <rate>.
    

    ——
    You will need to do some things:
    – The tsp1.wav that you used is 1 Channel (Mono) data, but you need to make it 2 Chennels (Stereo).
    e.g.) If you use a tool called sox , the following will duplicate the channel after rate conversion:
    sox tsp1.wav -r 48000 tsp2.wav remix 1 1
    Instead, please try using the output tsp2.wav.
    – Please set the channel number explicitly as -c 2 on your device. It is not -c 1 .
    – Please set the sampling rate explicitly as (e.g.) -f 48000 on your device. It is not -f 16000 (This is the wios default if not set).

    ——
    The following commands should work on your device.
    arecord -d 16 -D plughw:0,0 -f S32_LE -c 2 -r 48000 output.wav
    To make it work the same way:
    wios -r -x 0 -t 16 -a plughw:0,0 -e 32 -c 2 -f 48000 -o output.wav

    The following commands should work on your device.
    aplay -D plughw:0,0 tsp.wav
    To make it work the same way:
    wios -p -x 0 -d plughw:0,0 -i tsp.wav
    *) tsp.wav must be 48 kHz, 32-bit (or 16-bit) 2-channel data.

    The settings for syncing your recording and playback devices in this example are:
    wios -s -x 0 -y plughw:0,0 -z plughw:0,0 -e 32 -c 2 -f 48000 -i tsp.wav -o output.wav
    wios -s -y 0 -d plughw:0,0 -z 0 -a plughw:0,0 -e 32 -c 2 -f 48000 -i tsp.wav -o output.wav

    Notes:
    If you get an error message about buffers (for example, buffer overruns), you can work around by setting the buffer size larger than the initial value using the -N and -Z options.

    I hope this answer will help you solve your problem.

    Best regards,

    返信先: problem with wios #948
    匿名
    参加者

    @Masayuki Takigahira: Thank you. The script compiled successfully. Unfortunately, it did not give me any new information on how to overcome my problem with wios (see results of my wios_check in attachments). I hope I can do without wios.

    Paul

    返信先: problem with wios #3106
    匿名
    参加者

    It seems that you need to add -std=c++11 as a compile-time option in environments other than Ubuntu 18.04 or later. This is because the source code was written based on the C++11 specification.

    返信先: problem with wios #946
    匿名
    参加者

    Also, I tried to run the command: g++ wios-check.cpp -lasound -o wios-check

    but I got the following error :
    g++ wios-check.cpp -lasound -o wios-check
    wios-check.cpp:23:3: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:30:3: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:23:3: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:23:3: error: converting to ‘std::vector<_snd_pcm_access>’ from initializer list would use explicit constructor ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = _snd_pcm_access; _Alloc = std::allocator<_snd_pcm_access>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = _snd_pcm_access; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<_snd_pcm_access>]’
    wios-check.cpp:30:3: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:30:3: error: could not convert ‘{SND_PCM_FORMAT_U8, SND_PCM_FORMAT_S16_LE, SND_PCM_FORMAT_S24_LE, SND_PCM_FORMAT_S32_LE}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<_snd_pcm_format>’
    wios-check.cpp:129:3: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:179:3: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:195:3: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:129:3: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:129:3: error: could not convert ‘{SND_PCM_ACCESS_MMAP_INTERLEAVED, SND_PCM_ACCESS_MMAP_NONINTERLEAVED, SND_PCM_ACCESS_MMAP_COMPLEX, SND_PCM_ACCESS_RW_INTERLEAVED, SND_PCM_ACCESS_RW_NONINTERLEAVED}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<_snd_pcm_access>’
    wios-check.cpp:179:3: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:179:3: error: could not convert ‘{SND_PCM_FORMAT_S8, SND_PCM_FORMAT_U8, SND_PCM_FORMAT_S16_LE, SND_PCM_FORMAT_S16_BE, SND_PCM_FORMAT_U16_LE, SND_PCM_FORMAT_U16_BE, SND_PCM_FORMAT_S24_LE, SND_PCM_FORMAT_S24_BE, SND_PCM_FORMAT_U24_LE, SND_PCM_FORMAT_U24_BE, SND_PCM_FORMAT_S32_LE, SND_PCM_FORMAT_S32_BE, SND_PCM_FORMAT_U32_LE, SND_PCM_FORMAT_U32_BE, SND_PCM_FORMAT_FLOAT_LE, SND_PCM_FORMAT_FLOAT_BE, SND_PCM_FORMAT_FLOAT64_LE, SND_PCM_FORMAT_FLOAT64_BE, SND_PCM_FORMAT_IEC958_SUBFRAME_LE, SND_PCM_FORMAT_IEC958_SUBFRAME_BE, SND_PCM_FORMAT_MU_LAW, SND_PCM_FORMAT_A_LAW, SND_PCM_FORMAT_IMA_ADPCM, SND_PCM_FORMAT_MPEG, SND_PCM_FORMAT_GSM, SND_PCM_FORMAT_SPECIAL, SND_PCM_FORMAT_S24_3LE, SND_PCM_FORMAT_S24_3BE, SND_PCM_FORMAT_U24_3LE, SND_PCM_FORMAT_U24_3BE, SND_PCM_FORMAT_S20_3LE, SND_PCM_FORMAT_S20_3BE, SND_PCM_FORMAT_U20_3LE, SND_PCM_FORMAT_U20_3BE, SND_PCM_FORMAT_S18_3LE, SND_PCM_FORMAT_S18_3BE, SND_PCM_FORMAT_U18_3LE, SND_PCM_FORMAT_U18_3BE, SND_PCM_FORMAT_G723_24, SND_PCM_FORMAT_G723_24_1B, SND_PCM_FORMAT_G723_40, SND_PCM_FORMAT_G723_40_1B, SND_PCM_FORMAT_DSD_U8, SND_PCM_FORMAT_DSD_U16_LE, SND_PCM_FORMAT_DSD_U32_LE, SND_PCM_FORMAT_DSD_U16_BE, SND_PCM_FORMAT_DSD_U32_BE}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<_snd_pcm_format>’
    wios-check.cpp:195:3: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:195:3: error: could not convert ‘{5512, 8000, 11025, 16000, 22050, 32000, 44100, 48000, 64000, 88200, 96000, 176400, 192000}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<unsigned int>’
    wios-check.cpp: In constructor ‘AudioDevice::AudioDevice()’:
    wios-check.cpp:205:32: error: ‘nullptr’ was not declared in this scope
    AudioDevice(): name(“”), pcm(nullptr), hw_params(nullptr){
    ^
    wios-check.cpp: In destructor ‘AudioDevice::~AudioDevice()’:
    wios-check.cpp:208:15: error: ‘nullptr’ was not declared in this scope
    if(pcm != nullptr){
    ^
    wios-check.cpp:212:21: error: ‘nullptr’ was not declared in this scope
    if(hw_params != nullptr){
    ^
    wios-check.cpp: In member function ‘bool AudioDevice::is_valid()’:
    wios-check.cpp:219:15: error: ‘nullptr’ was not declared in this scope
    if(pcm == nullptr){ return false; }
    ^
    wios-check.cpp:221:21: error: ‘nullptr’ was not declared in this scope
    if(hw_params == nullptr){ return false; }
    ^
    wios-check.cpp: In member function ‘bool AudioDevice::open_device(std::__cxx11::string&, std::__cxx11::string&, std::__cxx11::string&, bool)’:
    wios-check.cpp:239:15: error: ‘nullptr’ was not declared in this scope
    if(pcm != nullptr){
    ^
    wios-check.cpp:263:13: error: ‘nullptr’ was not declared in this scope
    pcm = nullptr;
    ^
    wios-check.cpp:272:13: error: ‘nullptr’ was not declared in this scope
    pcm = nullptr;
    ^
    wios-check.cpp:281:13: error: ‘nullptr’ was not declared in this scope
    pcm = nullptr;
    ^
    wios-check.cpp: In member function ‘bool AudioDevice::print_support_channels()’:
    wios-check.cpp:353:28: error: ‘to_string’ is not a member of ‘std’
    std::string s(“( ” + std::to_string(min) + ” )”);
    ^
    wios-check.cpp: In member function ‘bool AudioDevice::print_support_rates()’:
    wios-check.cpp:406:28: error: ‘to_string’ is not a member of ‘std’
    std::string s(“( ” + std::to_string(min) + ” )”);
    ^
    wios-check.cpp:411:28: error: ‘to_string’ is not a member of ‘std’
    std::string s(“( ” + std::to_string(min) + “-” + std::to_string(max) + ” )”);
    ^
    wios-check.cpp:411:56: error: ‘to_string’ is not a member of ‘std’
    std::string s(“( ” + std::to_string(min) + “-” + std::to_string(max) + ” )”);

15件の投稿を表示中 - 346 - 360件目 (全559件中)