publish and service error when running rosjs example [closed]
As a learning step for rosbridge v2, I tried the example under rosjs, https://github.com/RobotWebTools/rosjs
So i did follow the instruction and ran the steps below and also opened the index.html file in Firefox,
roscore
rostopic pub /listener std_msgs/String "howdy"
rostopic echo /robot_pose
rosrun rospy_tutorials add_two_ints_server
rosrun rosapi rosapi.py
rosrun rosbridge_server rosbridge.py
but in the terminal window running rosbridge_server, I got the following error,
[INFO] [WallTime: 1351397051.222834] Client connected. 1 clients total. [ERROR] [WallTime: 1351397051.266227] [Client 0] [id: publish:/robot_pose:2] publish: argument of type 'int' is not iterable [INFO] [WallTime: 1351397051.271229] [Client 0] Subscribed to /listener [ERROR] [WallTime: 1351397051.321112] [Client 0] [id: call_service:/rosapi/get_param_names:5] call_service ServiceException: service [/rosapi/get_param_names] responded with an error: error processing request: [ERROR] [WallTime: 1351397051.321883] [Client 0] [id: call_service:/rosapi/get_param:9] call_service ServiceException: service [/rosapi/get_param] responded with an error: error processing request: [ERROR] [WallTime: 1351397051.322698] [Client 0] [id: call_service:/rosapi/set_param:8] call_service ServiceException: service [/rosapi/set_param] responded with an error: error processing request: [INFO] [WallTime: 1351397051.364633] [Client 0] Unsubscribed from /listener
The error occurred when publish "/robot_pose" and call service "/rosapi/get_param".
Any clues?
thanks clark