ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

How to get topic list from ROSBridge?

asked 2014-05-22 07:50:09 -0600

Sky--- gravatar image

I've beem unsing ROSBridge 2.0 to communicate with ros, and i'm trying to get the topic list using the following JSON message: { "op": "call_service", "service": "/rosapi/topics" } but i get an error on ros with the following text : "call_service InvalidServiceException: Service /rosapi/topics does not exist".

I can call services from rosservice but not from rossrv...

What am i doing wrong?

edit retag flag offensive close merge delete

Comments

How did you start the rosbridge? did you rosrun or roslaunch?

jihoonl gravatar image jihoonl  ( 2014-05-22 13:25:27 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-06-02 19:04:45 -0600

Sky--- gravatar image

I already fixed it.

The problem was that i did not knew that the rosapi node had to be started. After i started the node (rosrun rosapi rosapi) it worked like a charm...

Thanks anyways.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-05-22 07:50:09 -0600

Seen: 1,719 times

Last updated: Jun 02 '14