-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception calling subscribe callback: 'float' object has no attribute 'get_fields_and_field_types' #512
Comments
In further testing I have found this error also occurs with a std_msgs/msg/Float32 message as well. I will continue adding to this issue as I find more msg types that throw this error. |
This issue has been marked as stale because it has been open for 180 days with no activity. Please remove the stale label or add a comment to keep it open. |
Same issue Subscribe to a topic publishing std_msgs/msg/Int32MultiArray from javascript frontend through websocket Steps to Reproduce the Problem
let test_topic = new ROSLIB.Topic({
ros: ros,
name: '/test',
messageType: 'std_msgs/msg/Int32MultiArray'
})
test_topic.subscribe(function(message) {
console.log(message.data)
}) rosbridge_server log: SpecificationsROS2 Foxy |
I'm not able to reproduce this issue on Galactic. Will try Foxy soon. |
@danidask Are you using multiple subscribers (multiple clients) at once? Can you try building from latest source? I can reproduce some issues, although not the exact error message, if I have one cbor-raw subscriber and one json subscriber (the code in your example) to the same topic:
Neither of these error messages are the ones reported in this issue, though — one of them is #562 and one is #610. |
@jtbandes thanks for taking the time to look at it. |
This issue has been marked as stale because there has been no activity in the past 6 months. Please add a comment to keep it open. |
Expected Behavior
Sending rmf_fleet_msgs/FleetState messages through the websocket to the front end.
Actual Behavior
Subscribe is failing giving this error message
This only occurs when the FleetState message has robots in the Array of Robot states. when the Array is empty there is no problem.
Steps to Reproduce the Problem
1.Use roslibjs to subscribe to a topic publishing an rmf_fleet_msgs/FleetState message
2.Send a FleetState message with a non-empty RobotState Array
Specifications
echo $ROS_DISTRO
): Ros2 Eloquentgrep DISTRIB_CODENAME /etc/lsb-release
): Bionicroscat rosbridge_server package.xml | grep '<version>'
): ros2 branch built from sourcepython -c 'import twisted; print twisted.version'
): 17.9.0The text was updated successfully, but these errors were encountered: