Interactions-HSG / xarm-grpc

A command-line interface for xArm-C++-SDK to interact with UFACTORY xArms
Eclipse Public License 2.0
5 stars 0 forks source link

C++: Disable console output of xArm SDK #5

Closed jo-bru closed 3 years ago

jo-bru commented 3 years ago

In order to use the CLI tool with other frameworks/languages (e.g. Nodejs) the output of the xArm SDK must be disabled/formatted. In the best case, this complies with the setting for multi-level logging, which is determined by the flags. (see issue #4)

jo-bru commented 3 years ago

I was trying to redirect the output of the xarm-SDK to the logger (#5), but since it uses printf() instead of std::cout it's not trivial and must be solved by using pipes, I guess (which I do not understand yet).

How about we tweak the SDK and suppress/manipulate the nasty messages from the SDK? I forked the repo: https://github.com/Interactions-HSG/xArm-CPLUS-SDK

Originally posted by @iomz in https://github.com/Interactions-HSG/xarm-commander/issues/22#issuecomment-896695064