Skip to content
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

Type mismatch (int64 & long) #240

Closed
AlexisTM opened this issue Oct 26, 2016 · 1 comment
Closed

Type mismatch (int64 & long) #240

AlexisTM opened this issue Oct 26, 2016 · 1 comment

Comments

@AlexisTM
Copy link
Contributor

AlexisTM commented Oct 26, 2016

Dear,

I have a type mismatch between roslibjs and rosbridge. I don't know if the issue is related to rosbridge or roslibjs.

I am calling a service containing a Task.msg defined by :

TaskHandle.srv

Task task

---
string message
bool result

Task.msg

string name                 # Can be unique, you can use it as you please
uint8 mission_type          # Type of the mission
geometry_msgs/Point position
float64 yaw                 # in degrees
float32[] data              # Can be multiple data, like time to sleep, time to loiter, etc.
int64 ID

The error message I get is :

[ERROR] [WallTime: 1477462156.860756] [Client 2] [id: call_service:/flyingros/controller/task/remove:6] call_service FieldTypeMismatchException: flyingros_msgs/TaskHandleRequest message requires a int64 for field task.ID, but got a <type 'long'>

task.ID is an int64 which should be compatible with the type long in python according to http://wiki.ros.org/msg#line-47

The problem comes from definitions in the message conversion where "int64" should be declared as long.

@T045T
Copy link
Contributor

T045T commented Oct 26, 2016

Merged your PR, thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants