Skip to content

Commit

Permalink
orientation hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrceki committed Mar 2, 2023
1 parent 1069692 commit a332651
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions air_moveit_config/src/add_sphere.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ void sphereCallback(const std_msgs::Float32MultiArray::ConstPtr xyz)
float cam_degree = 30; // Angle between robot and camera
pose.position.x = z + (((radius/2) / sin(((90-cam_degree) * M_PI)/180))*2);
pose.position.y = -x;
pose.position.z = -y + radius; //
pose.orientation.w = 1;
pose.position.z = -y + radius; //hotfix for collision

// Orientation fix (to do: cam_degree)
pose.orientation.w = 0.9659258;
pose.orientation.y = -0.258819;

moveit_msgs::CollisionObject collision_object;
collision_object.header.frame_id = "camera_link";
Expand Down

0 comments on commit a332651

Please sign in to comment.