ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

I cannot control my fetch robot

asked 2017-11-22 20:33:06 -0500

dong_96 gravatar image

Hi all. I am trying to move a fetch robot go straigh. For example my robot spawn in position (0,0). it cannot go straight to (-3,0) or (-3, -3). i see the code here: https://github.com/fetchrobotics/fetc... I don't understand this code:


    move_goal = MoveBaseGoal()
    move_goal.target_pose.pose.position.x = x
    move_goal.target_pose.pose.position.y = y
    move_goal.target_pose.pose.orientation.z = sin(theta/2.0)
    move_goal.target_pose.pose.orientation.w = cos(theta/2.0)
    move_goal.target_pose.header.frame_id = frame
    move_goal.target_pose.header.stamp = rospy.Time.now()

can anyone explain to me please? sorry my english is not good. thanks all!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-25 11:19:37 -0500

I recommend you to have a look at ROS Actions.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-11-22 20:33:06 -0500

Seen: 148 times

Last updated: Nov 25 '17