TechmanRobotInc / tmr_ros2

TM Robots supporting ROS2 drivers and some extended external applications. (experimental) (not support the new TM S-Series)
Other
37 stars 21 forks source link

TM_driver cannot connect to server #4

Closed janandries closed 3 years ago

janandries commented 3 years ago

I cannot connect to the 'Server' , it times out continuously.

It says in the readme If is_srv_connect is false, the user should check whether the data table is correct.. I have checked my data table and it is the same as stated in the readme.

See output below:

[TM_INFO] TmCommunication::TmCommunication
[TM_DEBUG] TmSBuffer::TmSBuffer
[TM_DEBUG] TmCommRecv::TmCommRecv
[TM_DEBUG] TmRobotState::TmRobotState
[TM_DEBUG] Create DataTable
[TM_INFO] TmCommunication::TmCommunication
[TM_DEBUG] TmSBuffer::TmSBuffer
[TM_DEBUG] TmCommRecv::TmCommRecv
[TM_INFO] TM_SVR: start
[TM_INFO] TM_COM: ip:=192.168.1.47
[TM_INFO] TM_COM: rv:=-1
[TM_WARN] TM_COM: Connection timeout
[TM_INFO] TM_COM: O_NONBLOCK connection is fail
[TM_INFO] TM_ROS: publisher thread begin
[TM_INFO] TM_ROS: (TM_SVR): is not connected
[TM_INFO] TM_ROS: (TM_SVR): reconnect in 
[TM_INFO] 3.0 sec...
[TM_INFO] TM_SCT: start
[TM_INFO] TM_COM: ip:=192.168.1.47
[TM_INFO] TM_COM: rv:=0
[TM_INFO] TM_COM: Connection is ok
[TM_INFO] TM_COM: O_NONBLOCK connection is ok
[TM_INFO] TM_COM: TM robot is connected. sockfd:=16
[TM_INFO] TM_ROS: sct_response thread begin
[TM_INFO] 2.5 sec...
[TM_INFO] 2.0 sec...
[TM_INFO] 1.5 sec...
[TM_INFO] 1.0 sec...
[TM_INFO] 0.5 sec...
[TM_INFO] 0 sec
TM_ROS: (TM_SVR): connect(1000)...
[TM_INFO] TM_COM: ip:=192.168.1.47
[TM_INFO] TM_COM: rv:=-1
[TM_WARN] TM_COM: Connection timeout
[TM_INFO] TM_COM: O_NONBLOCK connection is fail
[TM_INFO] TM_ROS: (TM_SVR): is not connected
[TM_INFO] TM_ROS: (TM_SVR): reconnect in 
[TM_INFO] 3.0 sec...
[TM_INFO] 2.5 sec...
[TM_INFO] 2.0 sec...
janandries commented 3 years ago

Somehow EthernetSlave was disabled.