30 #include <gtest/gtest.h> 41 xpp_msgs::RobotParameters params_msg;
42 params_msg.base_mass = 30.0;
43 params_msg.ee_max_dev.x = params_msg.ee_max_dev.x = params_msg.ee_max_dev.z = 0.1;
47 xpp_msgs::RobotStateCartesian state_msg;
48 state_msg.ee_motion.resize(2);
49 state_msg.ee_forces.resize(2);
50 state_msg.base.pose.position.z = 0.6;
51 state_msg.ee_contact = {
true,
true };
52 state_msg.ee_motion.at(0).pos.y = 0.2;
53 state_msg.ee_motion.at(1).pos.y = -0.2;
54 state_msg.ee_forces.at(0).z = params_msg.base_mass*9.81/2.;
55 state_msg.ee_forces.at(1).z = params_msg.base_mass*9.81/2.;
60 EXPECT_FALSE(rviz_markers.markers.empty());
void SetRobotParameters(const xpp_msgs::RobotParameters &msg)
Provides additional robot info that can be used for visualization.
TEST(RvizRobotBuilder, BuildRobotState)
MarkerArray BuildRobotState(const xpp_msgs::RobotStateCartesian &msg) const
Constructs the RVIZ markers from the ROS message.
Constructs RVIZ markers that visualize a Cartesian robot state.