浏览代码

Do not need to execute planned trajectories on real robot. (#105)

/devin-main-fix
GitHub 4 年前
当前提交
ef0baa6a
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 4
      tutorials/pick_and_place/ROS/src/niryo_moveit/scripts/mover.py
  2. 2
      tutorials/pick_and_place/Scripts/TrajectoryPlanner.cs

4
tutorials/pick_and_place/ROS/src/niryo_moveit/scripts/mover.py


move_group.set_start_state(moveit_robot_state)
move_group.set_pose_target(destination_pose)
plan = move_group.go(wait=True)
plan = move_group.plan()
if not plan:
exception_str = """

raise Exception(exception_str)
return planCompat(move_group.plan())
return planCompat(plan)
"""

2
tutorials/pick_and_place/Scripts/TrajectoryPlanner.cs


void TrajectoryResponse(MoverServiceResponse response)
{
if (response.trajectories != null)
if (response.trajectories.Length > 0)
{
Debug.Log("Trajectory returned.");
StartCoroutine(ExecuteTrajectories(response));

正在加载...
取消
保存