-
Notifications
You must be signed in to change notification settings - Fork 173
Description
— Estoy usando ROS 2 (Jazzy Jalisco) y MoveIt Task Constructor (MTC) para planificar y ejecutar un flujo pick-and-place sobre un robot MyCobot en RViz.
— Tras completar el planning en MTC y pulsar “Exec” en RViz, no veo ningún movimiento en el simulador ni en hardware.
En el terminal aparece esta advertencia:
[move_group-1] [WARN] [1747935087.235500977] [moveit_task_constructor_visualization.execute_task_solution]: The trajectory of stage '0' from task '' does not have any controllers specified for trajectory execution. This might lead to unexpected controller selection.
[move_group-1] [INFO] [1747935087.235519537] [moveit_task_constructor_visualization.execute_task_solution]: Executing TaskSolution
[move_group-1] [INFO] [1747935087.235584392] [move_group.moveit.moveit.plugins.simple_controller_manager]: Returned 2 controllers in list
ROS 2 distro: Jazzy Jalisco
Sistema operativo: Ubuntu 24.04 en WSL2
simulador: Gazebo Harmonic
este es un fragmento del código del nodo mtc_node Author: Addison Sears-Collins:
auto stage_state_current = std::make_uniquemtc::stages::CurrentState("current state");
current_state_ptr = stage_state_current.get();
task.add(std::move(stage_state_current));
auto stage_open_gripper =
std::make_uniquemtc::stages::MoveTo("open gripper", interpolation_planner);
stage_open_gripper->setGroup(gripper_group_name);
stage_open_gripper->setGoal(gripper_open_pose);
stage_open_gripper->properties().set("trajectory_execution_info",
mtc::TrajectoryExecutionInfo().set__controller_names(controller_names));
task.add(std::move(stage_open_gripper));
En un inicio funcionaba todo bien pero luego actualice ROS2 y tuve esos errores.
— ¿Qué estoy pasando por alto para que MTC no asigne los controllers a la trayectoria?
— ¿Hay algún parámetro adicional o método en MTC que indique explícitamente qué controlador usar al ejecutar la solución?