Hello, I am trying to connect rs007l to ROS using this library, i successfully ran simulation in rviz, so i can tell that with high probability ROS robot controllers are working. But when I am connecting to real robot, i have got this ERROR:
Launch command:
ERROR:
Code
[ INFO] [1645700115.588700151]: [KhiRobotKrnxDriver] KRNX Linux-x86_64 DEV 2.2.0 2021/04/19 18:19
[ INFO] [1645700115.588849477]: [KhiRobotKrnxDriver] State 0: INIT -> CONNECTING
[ INFO] [1645700115.589102590]: [KhiRobotKrnxDriver] Connecting to real controller: [192.168.1.2]
No port_*.tbl. KRNX uses default port setting.
allapi_open error ret=-8193
[ERROR] [1645700115.593710946]: [KhiRobotKrnxDriver] krnx_Open returned -0x2001
[ INFO] [1645700115.593803070]: [KhiRobotKrnxDriver] State 0: CONNECTING -> INIT
[ERROR] [1645700115.593916496]: Failed to open KHI robot
[ INFO] [1645700115.593971324]: [KhiRobotKrnxDriver] State 0: INIT -> DISCONNECTING
[ERROR] [1645700115.594113805]: [KhiRobotKrnxDriver] krnx_Close returned -0x2000
[ INFO] [1645700115.594177223]: [KhiRobotKrnxDriver] destructor
[ERROR] [1645700115.594241898]: [KhiRobotKrnxDriver] krnx_Close returned -0x2000
pure virtual method called
terminate called without an active exception
Display More
And it looks like i cannot reach this robot IP, but i can ping it, and reach robot via telnet or connect using this IP with KIDE.
Code
ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=3.70 ms
64 bytes from 192.168.1.2: icmp_seq=2 ttl=64 time=1.07 ms
64 bytes from 192.168.1.2: icmp_seq=3 ttl=64 time=0.899 ms
64 bytes from 192.168.1.2: icmp_seq=4 ttl=64 time=3.05 ms
64 bytes from 192.168.1.2: icmp_seq=5 ttl=64 time=2.09 ms
64 bytes from 192.168.1.2: icmp_seq=6 ttl=64 time=3.53 ms
I was looking through library code and this ERROR_CODE 0x2001 means no host.
Defines from krnx.h
So my question is:what can i do in this situation? Maybe i need to set port in other mode? Or maybe someone has hit that problem earlier? I have found no information in the web, so any advise would be helpful. I am trying to write my thesis successfully))