-
Notifications
You must be signed in to change notification settings - Fork 123
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
Added wrapper for the move by command. #103
base: indigo-devel
Are you sure you want to change the base?
Changes from all commits
8e1a570
763c2e1
23fb05e
b7636d6
ecaf843
81d01cc
6e51598
ff19906
44353d1
a5dfd32
3ddc996
dc373e7
4c990b0
20c57aa
1cf2eec
15089f9
19b5ad0
90035f9
ee73812
ffed1bd
f92e45f
0aba6dd
75be564
035106c
b93ec8a
0051e05
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,10 @@ | |
<description>bebop_autonomy is a ROS driver for Parrot Bebop drone, based on Parrot’s official ARDroneSDK3</description> | ||
|
||
<maintainer email="[email protected]">Mani Monajjemi</maintainer> | ||
<maintainer email="[email protected]">Sepehr MohaimenianPour</maintainer> | ||
<maintainer email="[email protected]">Thomas Bamford</maintainer> | ||
<maintainer email="[email protected]">Tobias Naegeli</maintainer> | ||
|
||
<license>BSD</license> | ||
|
||
<url type="website">http://wiki.ros.org/bebop_autonomy</url> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,10 @@ | |
<description>URDF robot description for Parrot Bebop Drones</description> | ||
|
||
<maintainer email="[email protected]">Mani Monajjemi</maintainer> | ||
<maintainer email="[email protected]">Sepehr MohaimenianPour</maintainer> | ||
<maintainer email="[email protected]">Thomas Bamford</maintainer> | ||
<maintainer email="[email protected]">Tobias Naegeli</maintainer> | ||
|
||
<license>BSD</license> | ||
|
||
<url type="website">http://wiki.ros.org/bebop_description</url> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,10 @@ | |
<description>ROS driver for Parrot Bebop drone, based on Parrot’s official ARDroneSDK3</description> | ||
|
||
<maintainer email="[email protected]">Mani Monajjemi</maintainer> | ||
<maintainer email="[email protected]">Sepehr MohaimenianPour</maintainer> | ||
<maintainer email="[email protected]">Thomas Bamford</maintainer> | ||
<maintainer email="[email protected]">Tobias Naegeli</maintainer> | ||
|
||
<license>BSD</license> | ||
|
||
<url type="website">http://wiki.ros.org/bebop_driver</url> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,7 +133,7 @@ bool VideoDecoder::ReallocateBuffers() | |
boost::lexical_cast<std::string>(codec_ctx_ptr_->width) + | ||
" x " + boost::lexical_cast<std::string>(codec_ctx_ptr_->width)); | ||
|
||
const uint32_t num_bytes = avpicture_get_size(PIX_FMT_RGB24, codec_ctx_ptr_->width, codec_ctx_ptr_->width); | ||
const uint32_t num_bytes = avpicture_get_size(AV_PIX_FMT_RGB24, codec_ctx_ptr_->width, codec_ctx_ptr_->width); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you please explain this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The current ffmpeg uses AV_PIX_FMT_RGB24. Older versions of ffmpeg provide PIX_FMT_RGB24. |
||
frame_rgb_ptr_ = av_frame_alloc(); | ||
|
||
ThrowOnCondition(!frame_rgb_ptr_, "Can not allocate memory for frames!"); | ||
|
@@ -143,12 +143,12 @@ bool VideoDecoder::ReallocateBuffers() | |
std::string("Can not allocate memory for the buffer: ") + | ||
boost::lexical_cast<std::string>(num_bytes)); | ||
ThrowOnCondition(0 == avpicture_fill( | ||
reinterpret_cast<AVPicture*>(frame_rgb_ptr_), frame_rgb_raw_ptr_, PIX_FMT_RGB24, | ||
reinterpret_cast<AVPicture*>(frame_rgb_ptr_), frame_rgb_raw_ptr_, AV_PIX_FMT_RGB24, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
codec_ctx_ptr_->width, codec_ctx_ptr_->height), | ||
"Failed to initialize the picture data structure."); | ||
|
||
img_convert_ctx_ptr_ = sws_getContext(codec_ctx_ptr_->width, codec_ctx_ptr_->height, codec_ctx_ptr_->pix_fmt, | ||
codec_ctx_ptr_->width, codec_ctx_ptr_->height, PIX_FMT_RGB24, | ||
codec_ctx_ptr_->width, codec_ctx_ptr_->height, AV_PIX_FMT_RGB24, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
SWS_FAST_BILINEAR, NULL, NULL, NULL); | ||
} | ||
catch (const std::runtime_error& e) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please
lint
this function (indents, extra blank lines).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, if I understood your comment correctly. Pleas let me know, if it's the case.