Has anyone received Lua runtime error in simROS.Publish during ROS1 tutorial

Typically: "How do I... ", "How can I... " questions
Post Reply
Smitty44
Posts: 37
Joined: 20 Mar 2019, 16:50
Location: East coast, US.

Has anyone received Lua runtime error in simROS.Publish during ROS1 tutorial

Post by Smitty44 » 16 Mar 2020, 20:48

Hi there,
I managed to compile the RosInterface on windows.
I was working through the ROS1 Tutorial: https://www.coppeliarobotics.com/helpFi ... torial.htm

Everything worked fine until I tried to:
In an empty CoppeliaSim scene, select an object, then attach a non-threaded child script to it with [Menu bar --> Add --> Associated child script --> non threaded]. Open the script editor for that script and replace the content with following: I added the 52 lines of code to the XYZCameraProxy.

Ran simulation...Lua errors...
inside the Lua script:
line31: if rosInterfacePresent then
line32: publisher=simROS.advertise('/simulationTime','std_msgs/Float32')
line33: subscriber=simROS.subscribe('/simulationTime','std_msgs/Float32','subscriber_callback')
line34: end
...
line39: if rosInterfacePresent then
line40: simROS.publish(publisher,{data=sim.getSimulationTime()})
line41: simROS.sendTransform(getTransformStamped(objectHandle,objectName,-1,'world'))
line42: -- To send several transforms at once, use simROS.sendTransforms instead
line43: end

The RosInterface compiled ok, so I am not sure what to fix before building again.
Has anyone seen this before? Any ideas?
Thanks in advance.

Simulation started.

Lua runtime error: [string "CHILD SCRIPT XYZCameraProxy"]:32: unsupported message type. please edit and recompile ROS plugin (simROS.advertise @ 'RosInterface' plugin)
stack traceback:

: in function 'advertise'
[string "CHILD SCRIPT XYZCameraProxy"]:32: in function
Lua runtime error: [string "CHILD SCRIPT XYZCameraProxy"]:40: read in arg 1 (publisherHandle): expected int (simROS.publish @ 'RosInterface' plugin)
stack traceback:
[C]: in function 'publish'
[string "CHILD SCRIPT XYZCameraProxy"]:40: in function
Lua runtime error: [string "CHILD SCRIPT XYZCameraProxy"]:40: read in arg 1 (publisherHandle): expected int (simROS.publish @ 'RosInterface' plugin)
stack traceback:
[C]: in function 'publish'
[string "CHILD SCRIPT XYZCameraProxy"]:40: in function
Lua runtime error: [string "CHILD SCRIPT XYZCameraProxy"]:40: read in arg 1 (publisherHandle): expected int (simROS.publish @ 'RosInterface' plugin)
stack traceback:

coppelia
Site Admin
Posts: 7706
Joined: 14 Dec 2012, 00:25

Re: Has anyone received Lua runtime error in simROS.Publish during ROS1 tutorial

Post by coppelia » 17 Mar 2020, 17:41

Hello,

it seems that the message std_msgs/Float32 is not supported... does your file simExtROSInterface/meta/messages.txt contain that message?

Cheers

Smitty44
Posts: 37
Joined: 20 Mar 2019, 16:50
Location: East coast, US.

Re: Has anyone received Lua runtime error in simROS.Publish during ROS1 tutorial

Post by Smitty44 » 17 Mar 2020, 19:29

Hi there,
Yes, my file sim_ros_interface\meta\messages.txt contains:
...
std_msgs/Duration
std_msgs/Empty
std_msgs/Float32
std_msgs/Float32MultiArray
std_msgs/Float64
std_msgs/Float64MultiArray
std_msgs/Header
std_msgs/Int16
std_msgs/Int16MultiArray
std_msgs/Int32
std_msgs/Int32MultiArray
std_msgs/Int64
std_msgs/Int64MultiArray
std_msgs/Int8
std_msgs/Int8MultiArray
std_msgs/MultiArrayDimension
std_msgs/MultiArrayLayout
std_msgs/String
std_msgs/Time
std_msgs/UInt16
std_msgs/UInt16MultiArray
std_msgs/UInt32
std_msgs/UInt32MultiArray
std_msgs/UInt64
...

Since I am doing this on windows, I feel as though the direction of slashes may play a role.
I had to fix the COPPELIASIM_ROOT_DIR for that reason.

I have a question, if I may...
The building of the workspace and interface creates a number of objects.
I copied simExtROSInterface.dll to the CoppeliaSimEdu folder.
But, there was a simExtROSInterface.lib and simExtROSInterface.exp created as well.
Do I need to copy them to somewhere specific?

Thank you for your help.

Smitty44
Posts: 37
Joined: 20 Mar 2019, 16:50
Location: East coast, US.

Re: Has anyone received Lua runtime error in simROS.Publish during ROS1 tutorial

Post by Smitty44 » 18 Mar 2020, 19:14

Hi there,
Ok, so in CMakeCache.txt file I changed one of the parameters in CMAKE_CXX_FLAGS:STRING=/W3 to /W4, and CMAKE_C_FLAGS, too.
The output during the build spit out many lines...sorry for so many lines...
...
C:\opt\ros\melodic\x64\include\cv_bridge/cv_bridge.h(396): warning C4267: 'return': conversion from 'size_t' to 'uint32_t', possible loss of data
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(74): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(100): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(100): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(100): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(113): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(113): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(113): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(124): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(148): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(148): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(148): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(161): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(161): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(161): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(172): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(172): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(191): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(215): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(215): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(215): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(228): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(228): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(228): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(240): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(240): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(259): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(285): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(285): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(285): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(298): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(298): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(298): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(310): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(310): warning C4100: 'in': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(310): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(328): warning C4456: declaration of 'i' hides previous local declaration
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(322): note: see declaration of 'i'
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(317): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(317): warning C4100: 'in': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(317): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(342): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(363): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(363): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(363): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(376): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(395): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(395): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(395): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(408): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(408): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(408): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(442): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(442): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(448): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(448): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(454): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(454): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(460): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(460): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(466): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(466): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(472): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(472): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(472): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(477): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(477): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(477): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(482): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(482): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(482): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(487): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(487): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(487): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(492): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(492): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(497): warning C4100: 'out': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(497): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(497): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(502): warning C4100: 'cmd': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(502): warning C4100: 'p': unreferenced formal parameter
C:\opt\ros\melodic\x64\max_ws\src\sim_ros_interface\src\sim_ros_interface.cpp(510): error C2466: cannot allocate an array of constant size 0
...

So, in sim_ros_interface.cpp, it doesn't like the section starting on line 74;

void subscribe(SScriptCallBack * p, const char * cmd, subscribe_in * in, subscribe_out * out)
{
SubscriberProxy *subscriberProxy = new SubscriberProxy();
subscriberProxy->destroyAfterSimulationStop = shouldProxyBeDestroyedAfterSimulationStop(p);
subscriberProxy->handle = subscriberProxyNextHandle++;
subscriberProxy->topicName = in->topicName;
subscriberProxy->topicType = in->topicType;
subscriberProxy->topicCallback.scriptId = p->scriptID;
subscriberProxy->topicCallback.name = in->topicCallback;
subscriberProxies[subscriberProxy->handle] = subscriberProxy;

if(0) {}
#include <sub.cpp>
else
{
throw exception("unsupported message type. please edit and recompile ROS plugin");
}

if(!subscriberProxy->subscriber)
{
throw exception("failed creation of ROS subscriber");
}

out->subscriberHandle = subscriberProxy->handle;
}

And that would explain where the Lua error is coming from.
Now, I have to figure out the why and how to correct it.
Anyone have any thoughts?

fferri
Posts: 556
Joined: 09 Sep 2013, 19:28

Re: Has anyone received Lua runtime error in simROS.Publish during ROS1 tutorial

Post by fferri » 19 Mar 2020, 16:19

Can you show the commands used to build the plugin?

You should pass the options to see full verbose output. Those will vary depend on the build tool you use to compile the plugin. With catkin-tools on Linux that would be something like VERBOSE=1 catkin build --verbose.

Probably you didn't source the ROS environment before running the configure & build commands.

Smitty44
Posts: 37
Joined: 20 Mar 2019, 16:50
Location: East coast, US.

Re: Has anyone received Lua runtime error in simROS.Publish during ROS1 tutorial

Post by Smitty44 » 20 Mar 2020, 13:18

Hi there. Thank you for responding. I changed the CXX compiler parameter back to W3 from W4.
I had posted earlier about compiling the interface on windows here:
https://forum.coppeliarobotics.com/view ... f=9&t=8370
I actually thought I might have gotten it to work.
I was going through the first tutorial before I discovered it was not working properly.

As far as the build:
After creating my workspace, which included sourcing by running setup.bat (windows) at C:\opt\ros\melodic\x64, and then later sourcing the devel folder. (please tell me if I am wrong about that)
I followed the steps on building the interface (https://github.com/CoppeliaRobotics/simExtROSInterface), but with catkin_make.
The latest build, I used catkin_make_isolated -DCMAKE_BUILD_TYPE=Release. There were many warning messages.

I have attempted to start the Sim from the windows icon and from the command prompt.
The command prompt, I figured would be the best way to go, but I received the QT errors.
I am not sure how to fix that. QT seems to be in everything including the Sim.
I don't know where it should be looking.

Placing the setup.bat file in the target of the windows icon properties, got rid of the "ROS_MASTER_URI is not set" error.
The Sim started up and I checked the log and the interface appeared to load successfully.
I do not doubt that either I am doing something fundamentally wrong or I have to try something different due to it being windows.

fferri
Posts: 556
Joined: 09 Sep 2013, 19:28

Re: Has anyone received Lua runtime error in simROS.Publish during ROS1 tutorial

Post by fferri » 20 Mar 2020, 13:28

You have to keep an eye for warning messages that appear before the compile phase. (i.e. not those warning C4100: 'p': unreferenced formal parameter which are irrelevant)

If a ROS message cannot be found, a warning is emitted but code generation will continue.

Smitty44
Posts: 37
Joined: 20 Mar 2019, 16:50
Location: East coast, US.

Re: Has anyone received Lua runtime error in simROS.Publish during ROS1 tutorial

Post by Smitty44 » 20 Mar 2020, 15:23

Messages like this:
...
Scanning dependencies of target sim_ros_interface__setup_util.py_exec_install_python
[ 4%] Building CXX object CMakeFiles/sim_ros_interface__setup_util.py_exec_install_python.dir/catkin_generated/add_python_executable/sim_ros_interface__setup_util.py_exec_install_python/_setup_util.cpp.obj
_setup_util.cpp
[ 8%] Linking CXX executable catkin_generated\windows_wrappers\sim_ros_interface__setup_util.py_exec_install_python\_setup_util.exe
[ 8%] Built target sim_ros_interface__setup_util.py_exec_install_python
Scanning dependencies of target generate_ros_code
[ 13%] Generating generated/adv.cpp
WARNING: bad msg: driver_base/ConfigString
WARNING: bad msg: driver_base/ConfigValue
WARNING: bad msg: driver_base/SensorLevels
[ 17%] Generating generated/pub.cpp
WARNING: bad msg: driver_base/ConfigString
WARNING: bad msg: driver_base/ConfigValue
WARNING: bad msg: driver_base/SensorLevels
[ 21%] Generating generated/ros_msg_io.cpp
WARNING: bad msg: driver_base/ConfigString
WARNING: bad msg: driver_base/ConfigValue
WARNING: bad msg: driver_base/SensorLevels
WARNING: bad msg: driver_base/ConfigString
WARNING: bad msg: driver_base/ConfigValue
WARNING: bad msg: driver_base/SensorLevels
[ 26%] Generating generated/ros_msg_io.h
WARNING: bad msg: driver_base/ConfigString
WARNING: bad msg: driver_base/ConfigValue
WARNING: bad msg: driver_base/SensorLevels
WARNING: bad msg: driver_base/ConfigString
WARNING: bad msg: driver_base/ConfigValue
WARNING: bad msg: driver_base/SensorLevels
[ 30%] Generating generated/ros_srv_io.cpp
[ 34%] Generating generated/ros_srv_io.h
[ 39%] Generating generated/srvcall.cpp
[ 43%] Generating generated/srvcli.cpp
[ 47%] Generating generated/srvsrv.cpp
[ 52%] Generating generated/sub.cpp
WARNING: bad msg: driver_base/ConfigString
WARNING: bad msg: driver_base/ConfigValue
WARNING: bad msg: driver_base/SensorLevels
[ 52%] Built target generate_ros_code...

Smitty44
Posts: 37
Joined: 20 Mar 2019, 16:50
Location: East coast, US.

Re: Has anyone received Lua runtime error in simROS.Publish during ROS1 tutorial

Post by Smitty44 » 20 Mar 2020, 16:37

Also, I added system variable QT_QPA_PLATFORM_PLUGIN_PATH to point to CoppeliaSimEdu\platforms directory.
And I was able to open another terminal, source ROS, then move to CoppeliaSimEdu directory and successfully start the sim (coppeliaSim.exe).

Smitty44
Posts: 37
Joined: 20 Mar 2019, 16:50
Location: East coast, US.

Re: Has anyone received Lua runtime error in simROS.Publish during ROS1 tutorial

Post by Smitty44 » 20 Mar 2020, 19:57

And I had another error during catkin_make_isolated.

...
==> Processing catkin package: 'sim_ros_interface'
==> Building with env: 'C:\opt\ros\melodic\x64\max_ws\devel_isolated\ros_bubble_rob\env.bat'
Makefile exists, skipping explicit cmake invocation...
==> nmake cmake_check_build_system in 'C:\opt\ros\melodic\x64\max_ws\build_isolated\sim_ros_interface'

Microsoft (R) Program Maintenance Utility Version 14.24.28316.0
Copyright (C) Microsoft Corporation. All rights reserved.

==> nmake in 'C:\opt\ros\melodic\x64\max_ws\build_isolated\sim_ros_interface'

Microsoft (R) Program Maintenance Utility Version 14.24.28316.0
Copyright (C) Microsoft Corporation. All rights reserved.

[ 8%] Built target sim_ros_interface__setup_util.py_exec_install_python
[ 52%] Built target generate_ros_code
Scanning dependencies of target simExtROSInterface
[ 56%] Building CXX object CMakeFiles/simExtROSInterface.dir/src/sim_ros_interface.cpp.obj
sim_ros_interface.cpp
C:\opt\ros\melodic\x64\include\cv_bridge/cv_bridge.h(396): warning C4267: 'return': conversion from 'size_t' to 'uint32_t', possible loss of data
C:\opt\ros\melodic\x64\max_ws\build_isolated\sim_ros_interface\generated\pub.cpp(728): fatal error C1061: compiler limit: blocks nested too deeply
NMAKE : fatal error U1077:
'C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1424~1.283\bin\Hostx64\x64\cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
<== Failed to process package 'sim_ros_interface':
Command '['C:\\opt\\ros\\melodic\\x64\\max_ws\\devel_isolated\\ros_bubble_rob\\env.bat', 'nmake']' returned non-zero exit status 2

Reproduce this error by running:
==> cd 'C:\opt\ros\melodic\x64\max_ws\build_isolated\sim_ros_interface' && 'C:\opt\ros\melodic\x64\max_ws\devel_isolated\ros_bubble_rob\env.bat' nmake

Command failed, exiting.
...
Anyone seen this before while trying to build the Interface?
I would imagine there is a physical limit to nesting.
How to get past this one?

Post Reply