Open qiuzhong opened 6 years ago
In the protocol spec 3.2
rosbridge sends status messages to the client relating to the successes and failures of rosbridge protocol commands. There are four status levels: info, warning, error, none. By default, rosbridge uses a status level of error.
@qiuzhong have you find any code path which triggers the setStatusLevel
function in roslibjs? This operation should not be executed by client side as I understand.
@minggangw , no, I didn't found any place that calling Ros.setStatusLevel()
in roslibjs. It's just an exposed API of rclnodejs. I thought if this API comply the spec, then bridge should support set_level
as a request and vice versa.
So you think this API conflicts with the spec?
I have no idea why the roslibjs
implemented this interface.
According to the protocol spec,
set_level
is a response operation from theros2-web-bridge
to theroslibjs
.However, there is a API in
roslibjs
: Ros.setStatusLevelThis implies
set_level
should be a request fromroslibjs
. Currently, there is no handler for this kind of request operation.