17 #include <gtest/gtest.h> 19 #include <trajectory_msgs/JointTrajectory.h> 20 #include <control_msgs/FollowJointTrajectoryAction.h> 42 const std::string action_server_name = nh.
getNamespace() +
"/manipulator_joint_trajectory_controller/follow_joint_trajectory";
48 control_msgs::FollowJointTrajectoryGoal goal;
49 trajectory_msgs::JointTrajectory traj;
50 trajectory_msgs::JointTrajectoryPoint trajPoint;
51 trajPoint.positions = {0.0, 1.0, 0.0, 0.0, 0.0, 0.0};
53 traj.points.push_back(trajPoint);
54 traj.joint_names = {
"prbt_joint_1",
"prbt_joint_2",
"prbt_joint_3",
"prbt_joint_4",
"prbt_joint_5",
"prbt_joint_6"};
55 goal.trajectory = traj;
63 int main(
int argc,
char **argv)
65 ros::init(argc, argv,
"integrationtest_gazebo_bringup");
68 testing::InitGoogleTest(&argc, argv);
69 return RUN_ALL_TESTS();
bool waitForServer(const ros::Duration &timeout=ros::Duration(0, 0)) const
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
TEST_F(GazeboTest, basicMove)
const ros::Duration WAIT_FOR_ACTION_SERVER_TIME
SimpleClientGoalState sendGoalAndWait(const Goal &goal, const ros::Duration &execute_timeout=ros::Duration(0, 0), const ros::Duration &preempt_timeout=ros::Duration(0, 0))
const std::string & getNamespace() const
int main(int argc, char **argv)
ros::AsyncSpinner spinner_