ROSLIBJS "Non Official" message subscriber

asked 2016-08-16 16:11:08 -0600

Wilianson gravatar image

updated 2016-08-17 10:58:43 -0600

Hi, I am developing a web application with RosBridge for robot teleoperation, and I need to get all the sensor information, but my robot has topics with "Non Official " Messages , and when I wrote a subscriber it does not work, I suppose I have to make an extra work to get these information at my web browser, but I don't know how to start.

The error in the server is the next.

[ERROR] [WallTime: 1471449004.457651] [Client 0] [id: subscribe:/komodo_1/status:7] subscribe: Unable to import msg class status from package ric_robot. Caused by 'module' object has no attribute 'status'

Where:

/komodo_1/status is the topic with the 'custom message'

And the message type is 'ric_robot/ric_status' which has a status atribute.

If my english was not clear I am asking for a similiar tutorial of this, but for JavaScript with RosBridge.

I am working with ROS Hydro in Ubuntu 13.04

Thanks in advance for your answers.

edit retag flag offensive close merge delete

Comments

Java and Javascript are very different; I don't think the rosjava tutorial is relevant. Perhaps if you describe "does not work" with an error message or observed behavior someone else will be able to help you.

ahendrix gravatar imageahendrix ( 2016-08-16 17:01:02 -0600 )edit

Hi, I have Edited my question with the error message.

Wilianson gravatar imageWilianson ( 2016-08-17 11:02:08 -0600 )edit

That seems like it's trying to load the wrong message type for that topic. Perhaps there is a bug in your javascript?

ahendrix gravatar imageahendrix ( 2016-08-18 21:52:12 -0600 )edit

Hi, I want to do something similar for subscribing to topics based on custom msg types and create service clients based on custom service type. Could you please let me know if you've found a solution for this?

sharath gravatar imagesharath ( 2018-09-20 05:03:52 -0600 )edit

@sharath: in general that should be easy. If you're having specific issues, please ask a new question that includes your code and the error message that you're getting.

ahendrix gravatar imageahendrix ( 2018-09-20 17:07:56 -0600 )edit

@ahendrix: thanks for your answer. I was able to figure out the mistake i was doing. I had a capital "K" in my msg type and was giving it as small "k" so that had been the error.

sharath gravatar imagesharath ( 2018-09-20 21:53:09 -0600 )edit