1 #include <gtest/gtest.h> 5 TEST(MotorParameterTests, getParamOrDefaultTest) {
9 ASSERT_TRUE(nh.
getParam(
"getParamOrDefaultTest", foo));
15 TEST(MotorParameterTests, NodeParamTest) {
19 nh.
setParam(
"ubiquity_motor/controller_loop_rate", 50.0);
24 TEST(MotorParameterTests, CommsParamsTest) {
28 nh.
setParam(
"ubiquity_motor/serial_port",
"/dev/foo");
33 int main(
int argc,
char **argv) {
34 testing::InitGoogleTest(&argc, argv);
36 return RUN_ALL_TESTS();
double controller_loop_rate
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
TEST(MotorParameterTests, getParamOrDefaultTest)
T getParamOrDefault(ros::NodeHandle nh, std::string parameter_name, T default_val)
bool getParam(const std::string &key, std::string &s) const
void setParam(const std::string &key, const XmlRpc::XmlRpcValue &v) const