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

mneumann's profile - activity

2020-03-04 13:56:10 -0500 received badge  Student (source)
2020-03-04 13:55:30 -0500 marked best answer Extremely large network traffic using RosLibJs - possible solutions

Hello!

I am using RosLibJs for a web GUI that shows robot data like position, battery status, map etc.

Unfortunately, it uses a lot of network traffic (around 20 GBytes per day!). I am thinking this is due to the direct subscriptions to topics and the high frequency the robot emits data on those topics (like at 10 Hz, for example).

Now, I am unsure how to solve this problem. I thought of 2 possible solutions, maybe you people can help me with it:

  1. Create specialized nodes that only publish data when needed and not in the frequency the robot requires it internally,
  2. Request data periodically from JS side and offer a service from ROS side.

Do you have other ideas? Is there maybe a simpler way?

Thank you!

2019-06-21 04:03:42 -0500 commented answer Extremely large network traffic using RosLibJs - possible solutions

This sounds like a great solution. I will try it and let you know!

2019-06-20 06:35:34 -0500 received badge  Famous Question (source)
2019-06-20 06:35:34 -0500 received badge  Notable Question (source)
2019-06-20 06:35:34 -0500 received badge  Popular Question (source)
2019-06-14 01:08:02 -0500 received badge  Enthusiast
2019-06-13 12:13:08 -0500 received badge  Famous Question (source)
2019-06-13 10:15:09 -0500 asked a question Extremely large network traffic using RosLibJs - possible solutions

Extremely large network traffic using RosLibJs - possible solutions Hello! I am using RosLibJs for a web GUI that shows

2019-06-06 21:25:39 -0500 received badge  Famous Question (source)
2019-06-06 21:25:39 -0500 received badge  Notable Question (source)
2019-02-28 06:20:10 -0500 received badge  Famous Question (source)
2018-11-29 07:01:28 -0500 answered a question rosbridge can't locate node, possibly due to "symlink issue" in rosbridge_server

We solved the problem. By moving code from Linux to Windows, our SVN (or the OS itself, not sure) changed something in t

2018-11-29 06:50:11 -0500 commented question rosbridge can't locate node, possibly due to "symlink issue" in rosbridge_server

Yes, I will post this as an answer. They were solutions in the sense that we fixed the CMakeLists.txt we broke by shifti

2018-11-29 03:35:00 -0500 received badge  Popular Question (source)
2018-11-29 03:05:06 -0500 edited question rosbridge can't locate node, possibly due to "symlink issue" in rosbridge_server

rosbridge can't locate node, possibly due to "symlink issue" in rosbridge_server Second edit: Problem solved. We pushed

2018-11-29 02:03:49 -0500 edited question rosbridge can't locate node, possibly due to "symlink issue" in rosbridge_server

rosbridge can't locate node, possibly due to "symlink issue" in rosbridge_server Edited; See at the bottom for the new e

2018-11-29 02:00:20 -0500 edited question rosbridge can't locate node, possibly due to "symlink issue" in rosbridge_server

rosbridge can't locate node, possibly due to "symlink issue" in rosbridge_server Edited; See at the bottom for the new e

2018-11-28 10:33:12 -0500 received badge  Notable Question (source)
2018-11-28 10:27:19 -0500 asked a question rosbridge can't locate node, possibly due to "symlink issue" in rosbridge_server

rosbridge can't locate node, possibly due to "symlink issue" in rosbridge_server This issue occured out of the blue afte

2018-09-24 00:47:01 -0500 received badge  Notable Question (source)
2018-09-21 11:14:04 -0500 received badge  Popular Question (source)
2018-09-21 04:02:56 -0500 commented question ROSbridge: "Service does not exist"

Yes, I have multiple services I tried to call, all in the same cac package. I tried both /cac/GetMapInfo as well as /cac

2018-09-21 04:02:40 -0500 edited question ROSbridge: "Service does not exist"

ROSbridge: "Service does not exist" I am trying to call the service /cac/GetMapInfo in a stage simulator from ROSbridge

2018-09-21 04:02:26 -0500 edited question ROSbridge: "Service does not exist"

ROSbridge: "Service does not exist" I am trying to call the service /cac/getMapInfo in a stage simulator from ROSbridge

2018-09-21 04:02:06 -0500 commented question ROSbridge: "Service does not exist"

Yes, I have multiple services I tried to call, all in the same cac package. I tried both /cac/GetMapInfo as well as /cac

2018-09-21 02:47:39 -0500 asked a question ROSbridge: "Service does not exist"

ROSbridge: "Service does not exist" I am trying to call the service /cac/getMapInfo in a stage simulator from ROSbridge

2018-09-18 07:22:59 -0500 received badge  Popular Question (source)
2018-09-18 07:14:29 -0500 commented answer Get service message data

thanks! this is exactly what i meant!

2018-09-18 07:14:15 -0500 marked best answer Get service message data

I have a service node server that handles a simple request by a client. The client sends an id (as a string), which the server then should read out. I am using rospy.

If I print the message in the server, it says "request: 1". I want to only extract the "1". How do I do that?

Rephrasing a bit: what "member" of the message do I have to call to get the raw data? Something like message.data.

Here's the handler:

def handle_cac(request):
    # receive goal id, return goal information
    print("Received this message: ")
    print request.data # this does not work! I'd like to just get the raw id, e.g. "1"
    for goals in root.getchildren():
        for goal in goals.getchildren():
            print goal.tag
            print goal.attrib
            if goal.attrib.text == request.data:
                print "Found goal: " + goal.name
                # print((root.findall("goals"))[0][0].attribute)
               return "nothing"

And here's the client:

def cac_client(request_message):
    print "Running request"
    rospy.wait_for_service('CAC')
    try:
        GetGoal = rospy.ServiceProxy('CAC', cac)
        resp1 = GetGoal(request_message)
        print resp1
        return resp1
    except rospy.ServiceException, e:
        print "Service call failed: %s" %e

if __name__ == "__main__":
    cac_client("1")
2018-09-18 07:14:15 -0500 received badge  Scholar (source)
2018-09-18 07:14:06 -0500 received badge  Supporter (source)
2018-09-18 07:10:36 -0500 commented question Get service message data

How do I access the raw string I sent via these messages?

2018-09-18 06:52:45 -0500 commented question Get service message data

Sorry, I was not sure what you meant. This is what it looks like: string request \--- string response. Ignore the \, did

2018-09-18 06:48:18 -0500 commented question Get service message data

Sorry, I was not sure what you meant. This is what it looks like: string request \--- string response. Ignore the \, did

2018-09-18 06:47:23 -0500 commented question Get service message data

Sorry, I was not sure what you meant. This is what it looks like: `string request string response`

2018-09-18 06:47:16 -0500 commented question Get service message data

Sorry, I was not sure what you meant. This is what it looks like: string request \--- string response

2018-09-18 06:47:10 -0500 commented question Get service message data

Sorry, I was not sure what you meant. This is what it looks like: `string request string response`

2018-09-18 06:47:01 -0500 commented question Get service message data

Sorry, I was not sure what you meant. This is what it looks like: `string request string response`

2018-09-18 06:34:36 -0500 edited question Get service message data

Get service message data I have a service node server that handles a simple request by a client. The client sends an id

2018-09-18 06:15:21 -0500 commented question Get service message data

I added the client's code to the question.

2018-09-18 06:15:07 -0500 edited question Get service message data

Get service message data I have a service node server that handles a simple request by a client. The client sends an id

2018-09-18 06:14:39 -0500 edited question Get service message data

Get service message data I have a service node server that handles a simple request by a client. The client sends an id

2018-09-18 06:08:34 -0500 edited question Get service message data

Get service message data I have a service node server that handles a simple request by a client. The client sends an id

2018-09-18 06:08:34 -0500 received badge  Editor (source)