I am not perfectly clear about where to type the goal in the webshell input. As you can see in the attached photos, did I put the nsec value correctly? Or should I put nsec=10 in the header too?
As you can see I am not getting any feedback. Please help and let me understand properly on this issue.
Thank you
Hi @apurva.mramdham, you can send the goal by specifying it on the order
variable, under the goal
section (you don’t need to touch the header
and goal_id
sections). See a sample below:
user:~$ rostopic pub /fibonacci_as/goal actionlib_tutorials/FibonacciActionGoal "header:
seq: 0
stamp:
secs: 0
nsecs: 0
frame_id: ''
goal_id:
stamp:
secs: 0
nsecs: 0
id: ''
goal:
order: 9"
What you needed to specify here is the “order” (number of elements) of the Fibonacci series. See sample results below:
header:
seq: 2
stamp:
secs: 794
nsecs: 265000000
frame_id: ''
status:
goal_id:
stamp:
secs: 786
nsecs: 261000000
id: "/fibonacci-2-786.261000000"
status: 3
text: ''
result:
sequence: [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
header:
seq: 9
stamp:
secs: 793
nsecs: 265000000
frame_id: ''
status:
goal_id:
stamp:
secs: 786
nsecs: 261000000
id: "/fibonacci-2-786.261000000"
status: 1
text: "This goal has been accepted by the simple action server"
feedback:
sequence: [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
1 Like