Search found 1016 matches

by fferri
14 Sep 2021, 21:49
Forum: General questions
Topic: How to send PointCloud data to ROS
Replies: 1
Views: 5623

Re: How to send PointCloud data to ROS

Field points is an array. Your message should be something like:

Code: Select all

local msg={
      header=...,
      points={{x=p[1], y=p[2] ,z=p[3]}}
}
by fferri
14 Sep 2021, 11:47
Forum: General questions
Topic: How to use lazer data (hokuyo_urg) in ROS
Replies: 3
Views: 8422

Re: How to use lazer data (hokuyo_urg) in ROS

The approach for publishing data to ROS is always the same: 1) create a publisher, with simROS.advertise (normally in sysCall_init) 2) create a message data structure (Lua table), in this case you probably want sensor_msgs/LaserScan : local msg={ header={ stamp=simROS.getTime(), frame_id='...', }, a...
by fferri
14 Sep 2021, 11:37
Forum: General questions
Topic: Plugin on Windows 10 after upgrade
Replies: 7
Views: 7221

Re: Plugin on Windows 10 after upgrade

You should be able to easily install xsltproc with chocolatey or other package managers.

You can also install it manually: an old binary is provided here and it should work also on Windows 10.

It would be better to see the actual build errors you got, to better help you fix the problems.
by fferri
30 Aug 2021, 15:37
Forum: General questions
Topic: Threads in Coppeliasim
Replies: 2
Views: 3530

Re: Threads in Coppeliasim

Given your previous posts, I'm guessing you want to know the difference between threaded child scripts and non-threaded child scripts . Non-threaded child scripts execute synchronously with simulation. Once per timestep , the main script is executed, which takes care of executing all child scripts (...
by fferri
30 Aug 2021, 15:17
Forum: General questions
Topic: Pack Table in Coppeliasim and Unpack in Python Remote API
Replies: 1
Views: 2450

Re: Pack Table in Coppeliasim and Unpack in Python Remote API

For complex data, one option is to use a codec such as JSON or CBOR.

E.g. in Lua:

Code: Select all

--lua
cbor=require'cbor'
buf=cbor.encode{{1,2,3},{3,4,5}}
-- send buf...
in Python:

Code: Select all

#python
# receive buf...
import cbor
print(cbor.loads(buf))
# prints [[1, 2, 3], [3, 4, 5]]
by fferri
17 Aug 2021, 12:32
Forum: General questions
Topic: remoteAPI.dll with ARM64
Replies: 11
Views: 16609

Re: remoteAPI.dll with ARM64

RobEng wrote: 17 Aug 2021, 11:45 6. Define DO_NOT_USE_SHARED_MEMORY for example in extApiPlatform.h
Or define also that in the project settings (C/C++ -> Preprocessor -> Preprocessor definitions).
by fferri
17 Aug 2021, 11:05
Forum: General questions
Topic: ROS using in Windows
Replies: 3
Views: 4366

Re: ROS using in Windows

Hello,

can you provide more details?

Which ROS version are you talkiing about?
Which example scene are you talking about?
by fferri
10 Aug 2021, 13:11
Forum: General questions
Topic: Regarding hybrid mode in passive joint mode
Replies: 1
Views: 3488

Re: Regarding hybrid mode in passive joint mode

Those modes have been deprecated.

In the new Inverse kinematics tutorial you will find out those deprecated joint modes are not mentioned anymore.

See also Joint modes.
by fferri
06 Aug 2021, 10:13
Forum: General questions
Topic: regular api vs remote api
Replies: 3
Views: 5197

Re: regular api vs remote api

Regular API can be used in: embedded scripts (Lua), which include: child scripts (scripts attached to scene objects) customization scripts (similar to above, but can run also when simulation is not running) add-ons (scripts loaded by the application, independent of which scene is loaded) plugins (C/...