Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Exception raised with SetPoseTool in C#

#1
Hi 
when i use setPoseTool(), socketException error occurs.


Could you advise it please?
I made activate function using C# API.

But  when an already active tool is passed into the function below, the following error occurs.
Code:
    private bool ActivateTool(string toolName) {
     IItem selectedTool = _rdk.GetItemByName(toolName, ItemType.Tool);
     if(selectedTool.Valid()){
        _robot.SetPoseTool(selectedTool);
        return true;
      }
      else{
        return false;
      }
    }


Code:
    テスト メソッド RobotOperatorVerificationExperiments.MoveLReferCoordAbsTest.NotConnectedMove が例外をスローしました:
System.Net.Sockets.SocketException: 接続済みの呼び出し先が一定の時間を過ぎても正しく応答しなかったため、接続できませんでした。または接続済みのホストが応答しなかったため、確立された接続は失敗しました。

  スタック トレース: 
BufferedSocketAdapter.ReceiveData(Byte[] data, Int32 offset, Int32 len)
BufferedSocketAdapter.ReceiveData(Byte[] data, Int32 len)
RoboDK.rec_int()
RoboDK.check_status()
Item.SetPoseTool(IItem toolItem)
RobotOperator.ActivateTool(String toolName) 行 552
RobotOperator.MoveLReferCoordAbs(Double[] xyzwpr, String toolName, String referName) 行 254
MoveLReferCoordAbsTest.NotConnectedMove() 行 659
#2
We would need more information or context to better understand the issue.

Are you connected to the real robot? Can you provide us with the RoboDK project file?
Can you provide more code before the exception occurs?
  




Users browsing this thread:
1 Guest(s)