ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

I cannot control my fetch robot

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

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: 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 =

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

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

I recommend you to have a look at ROS Actions.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



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

Seen: 110 times

Last updated: Nov 25 '17