Home | Tutorials | Wiki | Issues
Ask Your Question
0

Using Boost::boost::asio::ip::udp from a model plugin

asked 2016-07-20 04:47:48 -0500

XB32Z gravatar image

Hi everyone,

I'm trying top use a custom UDP socket to control a model. The outgoing (from Plugin) messages are received but the plugins doesn't receive anything from the source. The messages are being queued. It's not the port because I tried to use the code outside gazebo and it works.

Any idea why, and how to fix this?

Thx!

XB32Z

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-07-21 02:42:13 -0500

XB32Z gravatar image

The solution is to move the receiver to a thread (tested) or use the IO_service of gazebo (access via IOManager) (non-tested) The porblem is that the same thread cannot access io_services via two different boost::io_services

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-07-20 04:47:48 -0500

Seen: 111 times

Last updated: Jul 21 '16