Skip to content
This repository was archived by the owner on Dec 1, 2020. It is now read-only.

Commit 079f0ef

Browse files
authored
Merge pull request #182 from project-march/fix/test-setup
Fix/test setup
2 parents 68004cd + 8e44b9b commit 079f0ef

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

march_hardware_builder/include/march_hardware_builder/AllowedRobot.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class AllowedRobot
1111
{
1212
march4,
1313
march3,
14-
testjoint_rotational,
15-
testjoint_linear,
14+
test_joint_rotational,
15+
test_joint_linear,
1616
pdb,
1717
};
1818

@@ -27,13 +27,13 @@ class AllowedRobot
2727
{
2828
this->value = march3;
2929
}
30-
else if (robotName == "testjoint_rotational")
30+
else if (robotName == "test_joint_rotational")
3131
{
32-
this->value = testjoint_rotational;
32+
this->value = test_joint_rotational;
3333
}
34-
else if (robotName == "testjoint_linear")
34+
else if (robotName == "test_joint_linear")
3535
{
36-
this->value = testjoint_linear;
36+
this->value = test_joint_linear;
3737
}
3838
else if (robotName == "pdb")
3939
{
@@ -42,7 +42,7 @@ class AllowedRobot
4242
else
4343
{
4444
ROS_ASSERT_MSG(false, "Unknown robot %s", robotName.c_str());
45-
this->value = AllowedRobot::testjoint_rotational;
45+
this->value = AllowedRobot::test_joint_rotational;
4646
}
4747
}
4848

@@ -57,11 +57,11 @@ class AllowedRobot
5757
{
5858
return basePath.append("/robots/march3.yaml");
5959
}
60-
else if (this->value == AllowedRobot::testjoint_rotational)
60+
else if (this->value == AllowedRobot::test_joint_rotational)
6161
{
6262
return basePath.append("/robots/test_joint_rotational.yaml");
6363
}
64-
else if (this->value == AllowedRobot::testjoint_linear)
64+
else if (this->value == AllowedRobot::test_joint_linear)
6565
{
6666
return basePath.append("/robots/test_joint_linear.yaml");
6767
}

march_hardware_builder/test/TestAllowedRobots.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ TEST_F(AllowedRobotTest, TestMarch3Values)
9898

9999
TEST_F(AllowedRobotTest, TestTestRotationalSetupCreation)
100100
{
101-
ASSERT_NO_THROW(HardwareBuilder(AllowedRobot::testjoint_rotational).createMarchRobot());
101+
ASSERT_NO_THROW(HardwareBuilder(AllowedRobot::test_joint_rotational).createMarchRobot());
102102
}
103103

104104
TEST_F(AllowedRobotTest, TestTestLinearSetupCreation)
105105
{
106-
ASSERT_NO_THROW(HardwareBuilder(AllowedRobot::testjoint_linear).createMarchRobot());
106+
ASSERT_NO_THROW(HardwareBuilder(AllowedRobot::test_joint_linear).createMarchRobot());
107107
}

march_hardware_interface/launch/hardware.launch

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher"/>
1111

1212
<node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="true"
13-
args="
14-
/march/controller/joint_state
15-
/march/controller/temperature_sensor
16-
/march/controller/trajectory
17-
"
13+
args="controller/joint_state controller/temperature_sensor controller/trajectory"
1814
/>
1915

2016
<node

0 commit comments

Comments
 (0)