Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bebop_driver/launch/bebop_node.launch
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<param name="bebop_ip" value="$(arg ip)" />
<rosparam command="load" file="$(arg config_file)" />
</node>
<include file="$(find bebop_description)/launch/description.launch" />
<include file="$(find bebop_description)/launch/description.launch">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for re-enabling this. However this will not run since it's not a valid XML. Please also add back the missing />. It might be easier to just checkout bode_node.launch from upstream.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for my typo.

</group>
</launch>
5 changes: 3 additions & 2 deletions bebop_driver/src/bebop_driver_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,8 @@ void BebopDriverNodelet::AuxThread()
if (bebop_ptr_->ardrone3_pilotingstate_positionchanged_ptr)
{
gps_state_ptr = bebop_ptr_->ardrone3_pilotingstate_positionchanged_ptr->GetDataCstPtr();
if ((gps_state_ptr->header.stamp - last_gps_time).toSec() > util::eps)
//if ((gps_state_ptr->header.stamp - last_gps_time).toSec() > util::eps)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for my delayed feedback and thanks for making all the changes. I will merge it in very soon. Please also remove this commented line. Also, please consider adding your name to the following file as part of this pull request: https://github.com/AutonomyLab/bebop_autonomy/blob/indigo-devel/docs/contribute.rst

if (gps_state_ptr && ((gps_state_ptr->header.stamp - last_gps_time).toSec() > util::eps))
{
last_gps_time = gps_state_ptr->header.stamp;
new_gps_state = true;
Expand All @@ -559,7 +560,7 @@ void BebopDriverNodelet::AuxThread()
speed_esd_ptr = bebop_ptr_->ardrone3_pilotingstate_speedchanged_ptr->GetDataCstPtr();

// conside new data only
if ((speed_esd_ptr->header.stamp - last_speed_time).toSec() > util::eps)
if (speed_esd_ptr && ((speed_esd_ptr->header.stamp - last_speed_time).toSec() > util::eps))
{
last_speed_time = speed_esd_ptr->header.stamp;
new_speed_data = true;
Expand Down