7 #include "ros/console.h"
8 #include "geometry_msgs/PoseArray.h"
12 int main(
int argc,
char **argv)
14 ros::init(argc, argv,
"footstep_planner_server");
18 ros::Publisher footstep_pub = n.advertise<geometry_msgs::PoseArray>(
"/footstep_planner/footstep_plan", 1000);
20 ros::Duration(1).sleep();
22 Eigen::Array<bool, 4, 1> bool_bridge;
24 bool_bridge <<
true,
true,
true,
true;
37 double step_height = 0.2;
39 double length_legs = 0.6;
41 double bbox_len = 0.3;
43 ROS_INFO(
"About to begin planning");
51 ROS_INFO(
"Writing to file...");
56 ROS_INFO(
"Successfully wrote to file!");
59 ROS_INFO(
"Successfully got poseArray");
60 footstep_pub.publish(msg);
61 ROS_INFO(
"Successfully published");
geometry_msgs::PoseArray pose_array_from_eigen_matr(Eigen::MatrixXd pos)
void step_sequence(drake::solvers::MathematicalProgram &prog, int n_steps, double step_span, DecVars &decision_variables)
void writeDecVarsToFile(DecVars_res &decision_variables, std::string base_name="footstep_planner")
Eigen::MatrixXd position_ts