Hi @AbbasSidaoui !
According to the ROS Bridge Protocol
http://wiki.ros.org/rosbridge_suite, when sending message to ROS Bridge you have to specify the op
(Operation) field.
If you look at the link above, you will see the example message:
{ "op": "subscribe",
"topic": "/cmd_vel",
"type": "geometry_msgs/Twist"
}
In this message, the Operation is subscribe
, which means that this ROS Bridge Client is telling ROS Bridge that he wants to subscribe to the /cmd_vel
topic which publish messages of type geometry_msgs/Twist
.
Looking at the error message on the picture, we can see that there is a "op": "publish"
, so this doesn't seen to be the problem.
What I would do in this case is try to print the "keys"
of the message to see if there is a key named "op"
like in the example below:
message = { "op": "subscribe",
"topic": "/cmd_vel",
"type": "geometry_msgs/Twist"
}
Object.keys(message)