ros-industrial / staubli_val3_driver

ROS-Industrial (simple message) driver for Stäubli CS8 and CS9 robot controllers (VAL 3 application)
Apache License 2.0
26 stars 21 forks source link

rosGenericMsg : invalid type #27

Open benthebear93 opened 3 years ago

benthebear93 commented 3 years ago

Hello, i'm trying to run ros_sever with SRS. ros_sever, ros_libs folder are in this directory "C:\Users\MHM\Documents\Staubli\SRS\ros_test2\Controller1\usr\usrapp" which is a cell dicrectory.

I opened ros_sever application and used emulator to run +Disk->ros_server

but error occur and log says "rosGenericMsg: rosGenericMsg : invalid type"

I set the TCP sever two socket (Feedback, Motion) but same error occurs. same rosGenericMsg error occurs when i tried real robot.

Am i missing something? or is there a problem ? thx!

sinamr88 commented 3 years ago

Interestingly, I am also facing the same problem now, Any suggestion is highly appreciated :)

Thanks a lot

gavanderhoorn commented 3 years ago

Tbh I don't know immediately what would cause this.

Seeing as you're both running into the same problem, perhaps a good first step would be to provide details on:

etc.

The type is defined here: ros-industrial/staubli_val3_driver/staubli_val3_driver/val3/ros_server/ros_server.dtx, so it's definitely provided by the sources.

benthebear93 commented 3 years ago

Sorry for late reply

(virtual) controller versions : CS8 (not sure where i can check in virtual env but my real controller version is CS8) system software versions : SRS 2019.7.2 VAL3 versions : s7.11.2 how you retrieved a copy of the VAL3 source : I download from this page, and put ros_libs, ros_server folder into usr/usrapp folder which exists in cell location. (I'm not sure i understand your question well..) how you copied the code to the controller / simulation : for controller, i used FTP surfer to put ros_libs, ros_server into usr/usrapp for controller, and simulation is same as above method

I noticed that when i first start the SRS Cell, 7 error occurs.

datatype 'rosTrajPtMsg': type 'JointTrajPtMsg" is unknown.
datatype 'rosTrajPtFMsg': type 'JointTrajPtFMsg" is unknown.
datatype 'rosStatusMsg': type 'RobotStatusMsg" is unknown.
datatype 'rosJointMsg': type 'JointStateMsg" is unknown.
datatype 'rosTrajFbkMsg': type 'JointFbkMsg" is unknown.
datatype 'rosGenericMsg': type 'RosSimpleMsg" is unknown.
datatype 'qMoveBuffer': type 'Queue" is unknown.

(some spelling might wrong since i translate the korean error msg to english)

and when i tried to run ros_server -> "rosGenericMsg: rosGenericMsg : invalid type" this error.

maybe problem some files from ros_libs ? or i copied wrong place? (both ros_server folder and ros_libs folder are located C:\Users\MHM\Documents\Staubli\SRS\ros_test2\Controller1\usr\usrapp here) or do i have to "open application" for all the ros_libs files?

not sure what is the problem at all, i'd appreciate any tips, ideas. If you need more information to figure out i will give it to you. thx.

marshallpowell97 commented 3 years ago

Hi @benthebear93

I can't seem to recreate the error in SRS. Can you run a syntax check in SRS and show me the output?

image

benthebear93 commented 3 years ago

@marshallpowell97 error_image

here is the error. I notice that your SRS Cell explorer is little bit different compare to mine. error_image12

could it be the reason?

gavanderhoorn commented 3 years ago

@benthebear93: could you please clarify how you downloaded the files of the driver exactly?

If you downloaded any links, please tell us which links.

if you used git, please tell us how.

benthebear93 commented 3 years ago

@gavanderhoorn

i got from this git. using zip file for download to test. also used git clone to test.

but after you said, i test it again with git clone from readme description and it works. No error when i used "Check ros_server" No error using SRS emulator application manager

I didn't really changed anything. I also reused the old files that i used before today but error didn't show too, weird. thanks for the answers though, if you need any more information i love to answer.

gavanderhoorn commented 3 years ago

then the same questions about how you checked out the sources for @SinaMirrazavi.

gavanderhoorn commented 3 years ago

I'm going to close this.

It seems @benthebear93's problem was resolved.

@SinaMirrazavi: if you're still experiencing problems, please post an update in a comment here.

sinamr88 commented 3 years ago

Sorry for the late reply. I exactly followed the same procedure benthebear93 described and by cloning the repo the problem was sovled.

gavanderhoorn commented 3 years ago

So downloading the .zip didn't work, but git clone-ing it did work?

Did you git clone on Windows? Or on Linux and then copied the files to the Windows machine?

We might need to force Windows line-endings for the VAL 3 sources.

@marshallpowell97: does SRS / the controller require Windows line-endings?

benthebear93 commented 3 years ago

@gavanderhoorn So i tried to re-generate the error but couldn't

git clone from window (worked) download .zip from window(worked) git clone at linux and move to window machine (worked) download .zip from linux and move to window machine (worked)

it's weird but everything works for me now.

gavanderhoorn commented 3 years ago

Hm.

Then unless @SinaMirrazavi tries this as well and reports something else, I don't believe we'll be able to figure out what went wrong.

marshallpowell97 commented 3 years ago

does SRS / the controller require Windows line-endings?

@gavanderhoorn I don't believe so. If it did, I think we would see more errors than that.

Like you said, the type is provided by the source, so I don't think the problem is in the repo.

gavanderhoorn commented 3 years ago

Re-opening as it seems others have ran into this now as well.

See #28.

benthebear93 commented 3 years ago

So I encountered same problem today as i tried to change some code in ros_server. And i took a time to test few things

i guess using USB dosent work?