ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
This answer reports the error in rosgraph.masterapi.nodeLookup
.
The xmlrpclib response while looking up the node is parsed through the _succeed function (see link below). Note that only val
is passed back in this function.
https://code.ros.org/trac/ros/browser/stacks/ros_comm/trunk/tools/rosgraph/src/rosgraph/masterapi.py?rev=16525#L136
As a result, the actual nodeLookup
function passes back val
, and the code
and msg
fields are lost. See
https://code.ros.org/trac/ros/browser/stacks/ros_comm/trunk/tools/rosgraph/src/rosgraph/masterapi.py?rev=16525#L417
The following call tries to parse code
, msg
, uri
from the call, and causes an exception and fails.
https://code.ros.org/trac/ros/browser/stacks/ros_comm/trunk/tools/rosgraph/src/rosgraph/impl/graph.py?rev=16525#L460
Fixing the code in graph.py
corrects rxgraph
execution, however my rosgraph
output remains unchanged. Will debug that shortly.
2 | redirected answer to tickets in trac |
This answer reports problem was attributed to 2 separate bugs in the error rosgraph python scripts, that have been reported in 2 separate tickets (ticket 3946 and ticket 3947). Patches to fix the problem are included in both tickets.rosgraph.masterapi.nodeLookup
.
The xmlrpclib response while looking up the node is parsed through the _succeed function (see link below). Note that only val
is passed back in this function.
https://code.ros.org/trac/ros/browser/stacks/ros_comm/trunk/tools/rosgraph/src/rosgraph/masterapi.py?rev=16525#L136
As a result, the actual nodeLookup
function passes back val
, and the code
and msg
fields are lost. See
https://code.ros.org/trac/ros/browser/stacks/ros_comm/trunk/tools/rosgraph/src/rosgraph/masterapi.py?rev=16525#L417
The following call tries to parse code
, msg
, uri
from the call, and causes an exception and fails.
https://code.ros.org/trac/ros/browser/stacks/ros_comm/trunk/tools/rosgraph/src/rosgraph/impl/graph.py?rev=16525#L460
Fixing the code in graph.py
corrects rxgraph
execution, however my rosgraph
output remains unchanged. Will debug that shortly.