Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
corot committed Nov 21, 2023
1 parent 41327ae commit e601e22
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mbf_abstract_nav/test/abstract_controller_execution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct AbstractControllerMock : public AbstractController
MOCK_METHOD0(cancel, bool());
};

ros::Publisher VEL_PUB, GOAL_PUB;
ros::Publisher VEL_PUB;
TFPtr TF_PTR;
mbf_utility::RobotInformation::Ptr ROBOT_INFO_PTR;

Expand All @@ -50,7 +50,7 @@ struct AbstractControllerExecutionFixture : public Test, public AbstractControll
{
AbstractControllerExecutionFixture()
: AbstractControllerExecution("a name", AbstractController::Ptr(new AbstractControllerMock()), *ROBOT_INFO_PTR,
VEL_PUB, GOAL_PUB, MoveBaseFlexConfig{})
VEL_PUB, MoveBaseFlexConfig{})
{
}

Expand Down Expand Up @@ -298,7 +298,6 @@ int main(int argc, char** argv)
ros::NodeHandle nh;
// setup the pubs as global objects
VEL_PUB = nh.advertise<Twist>("vel", 1);
GOAL_PUB = nh.advertise<PoseStamped>("pose", 1);

// setup the tf-publisher and robot info as a global objects
TF_PTR.reset(new TF());
Expand Down

0 comments on commit e601e22

Please sign in to comment.