bluenviron/goroslib

Simple action client stuck waiting for server

lazaroofarrill opened this issue · 5 comments

Which operating system are you using?

OS

  • Linux
  • Windows
  • macOS

Architecture

  • amd64
  • arm64
  • arm7
  • arm6

Describe the issue

Description
I just updated, now the action clients are stuck in WaitForServer()

aler9 commented

Hello, the WaitForServer algorithm was not changed at all. Please try again, or alternatively provide a way to replicate the issue, for instance:

  1. start the master node
  2. run action server... (provide code or command line)
  3. run action client...

Hello, I rolled back my code and it's working so I guess I messed up somewhere, sorry.

It happened to me, too
code:
node, err := goroslib.NewNode(goroslib.NodeConf{
Name: "xx_node",
Host: "127.0.0.0.1",
MasterAddress: "127.0.0.0.1:11311",
})
if err != nil {
panic(err)
}
defer node.Close()
sac, err := goroslib.NewSimpleActionClient(goroslib.SimpleActionClientConf{
Node: node,
Name: "robot_pose_editor",
Action: &action.PoseEditAction{},
})

  if err != nil {
	  c.JSON(http.StatusOK, gin.H{
		  "code":    200,
		  "message": err.Error(),
		  "pose_id": 0,
	  })
	  return
  }

  defer sac.Close()
  // wait for the server
  fmt.Println("wait for the server")
  sac.WaitForServer()
  fmt.Println("create a simple action client end")
       .........

describe :
failed to print properly "create a simple action client end"
rostopic echo robot_pose_editor/status
header:
seq: 4332
stamp:
secs: 1629807103
nsecs: 470941966
frame_id: ''
status_list: []
feedback、result、goal、cancel topic not data

@aler9 Looking forward to your reply. Thank you!

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case a similar problem arises.