Skip to content

Commit

Permalink
Merge pull request #68 from seanyen-msft/ros_assert_fix
Browse files Browse the repository at this point in the history
Turtlebot3Fake::init() should be invoked regardless ROS_ASSERT_ENABLED is defined.
  • Loading branch information
Taehun Lim authored Dec 12, 2018
2 parents a1c473b + 97c49c6 commit 2275a11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion turtlebot3_fake/src/turtlebot3_fake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ Turtlebot3Fake::Turtlebot3Fake()
: nh_priv_("~")
{
//Init fake turtlebot node
ROS_ASSERT(init());
bool init_result = init();
ROS_ASSERT(init_result);
}

Turtlebot3Fake::~Turtlebot3Fake()
Expand Down

0 comments on commit 2275a11

Please sign in to comment.