aerostack2 / aerostack2.github.io

Documentation of the Aerostack2 Project
https://aerostack2.github.io/
MIT License
8 stars 6 forks source link

Assertion `PyFloat_Check(field)' failed #65

Closed OdedHorowits closed 1 week ago

OdedHorowits commented 1 week ago

Hi

So I made my own DroneInterface, similar to the one in the /aerostack2_examples/project_gazebo/mission.py example. I combined some modules I found over the as2_* packages. When I use it to takeoff, land, goto, it work ok.

However, if I launch one python script to takeoff, and then another python script to do other steps, I get the error:

python: ./.obj-x86_64-linux-gnu/rosidl_generator_py/std_msgs/msg/_float32_s.c:58: std_msgs__msg__float32__convert_from_py: Assertion `PyFloat_Check(field)' failed.

It sometimes happens within the same script, when it calls a series of functions. However, it also happens when I launch one python to do takeoff() and another one to to land().

Help would be appreciated.

pariaspe commented 1 week ago

Hi @OdedHorowits , could please report the whole error message?

OdedHorowits commented 1 week ago

Hi @OdedHorowits , could please report the whole error message?

That is the whole msg... just one line

OdedHorowits commented 1 week ago

ok well I am sorry, that was actually just a problem with float type... land(speed=s) should get a float value