gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.19k stars 480 forks source link

Header parsing fails when used inside the Fawkes Robot Software Framework #340

Open osrf-migration opened 11 years ago

osrf-migration commented 11 years ago

Original report (archived issue) by Bastian Klingen (Bitbucket: bklingen).


During my diploma-thesis I used Gazebo with the Fawkes Robot Software Framework and encountered the problem that the message headers were parsed incorrectly and thus no connection could be established.

I fixed this problem for my work by adjusting the ParseHeader function of the Connection class so that the header get limited to the defined HEADER_LENGTH by changing the argument of the istringstream to a limited substring.

Old:

#!c++

std::istringstream is(header);

New:

#!c++

std::istringstream is(header.substr(0,HEADER_LENGTH));

I had no problems using Gazebo otherwise, the error only occured when using it with Fawkes.

osrf-migration commented 11 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


Until 2.0

osrf-migration commented 11 years ago

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


osrf-migration commented 8 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


osrf-migration commented 8 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).