Search found 820 matches

by fferri
09 Nov 2021, 11:04
Forum: General questions
Topic: Problem in robot control with UI
Replies: 4
Views: 4725

Re: Problem in robot control with UI

Try to add some print(...) here and there to understand what's not being called.
by fferri
08 Nov 2021, 11:45
Forum: Bug reports
Topic: how to load a existing scene in linux?
Replies: 2
Views: 7196

Re: how to load a existing scene in linux?

If you mean to load a scene to an existing instance of CoppeliaSim via a linux command, try the following:

Code: Select all

python3 -c '__import__("zmqRemoteApi").RemoteAPIClient().getObject("sim").loadScene("foo.ttt")'
(requires the zmqRemoteAPI)
by fferri
08 Nov 2021, 11:35
Forum: General questions
Topic: Access the camera in CoppeliaSim, and applied in software developed by Qt.
Replies: 2
Views: 4710

Re: Access the camera in CoppeliaSim, and applied in software developed by Qt.

You can create a vision sensor with a pose similar to the default camera. Then you can deliver the vision sensor image data (raw RGB data) to your application in various ways: Remote API: Your application can use the Remote API to call sim.getVisionSensorCharImage and get the image data, as often as...
by fferri
03 Nov 2021, 22:48
Forum: General questions
Topic: simOMPL.compute doesn't reach the goalConfigs
Replies: 5
Views: 4829

Re: simOMPL.compute doesn't reach the goalConfigs

You can check if solution has been found, and which type (exact, or approximate) with:
  • simOMPL.hasApproximateSolution
  • simOMPL.hasExactSolution
If solution is not found (or is approximate) maybe not enough time has been given to the planner, or is a very difficult to find solution.
by fferri
18 Oct 2021, 11:11
Forum: General questions
Topic: UI widget in "ABB IRB 140.ttm"
Replies: 2
Views: 7683

Re: UI widget in "ABB IRB 140.ttm"

-- xml string for UI creation: .... <image geometry="0,0,1088,607" width="1088" height="607" id="1"/> <button text="Button" geometry="932,502,100,40" on-click="click_callback" id="2" style="* {background-color: #66ff66}"/> ... Then you would use simUI.setImageData to set the background image. or us...
by fferri
15 Oct 2021, 07:59
Forum: Bug reports
Topic: Cannot compile libsimExtROSInterface in Ubuntu 18.04
Replies: 1
Views: 8507

Re: Cannot compile libsimExtROSInterface in Ubuntu 18.04

You need to make sure you have the version of programming/include , programming/common and programming/libPlugin provided with the 4.2.0 release, and not from git. Additionally, you need to use the melodic branch of simExtROS ( master is for noetic only): #shell git -C ~/ros_ws/src/sim_ros_interface...
by fferri
05 Oct 2021, 10:16
Forum: General questions
Topic: Moveit to CoppeliaSim
Replies: 1
Views: 3698

Re: Moveit to CoppeliaSim

Code: Select all

function joint_callback(msg)
    movCallback(msg.position)
end
?
by fferri
05 Oct 2021, 09:46
Forum: General questions
Topic: Zmq remote Api vision sensor visualisation slow
Replies: 3
Views: 5286

Re: Zmq remote Api vision sensor visualisation slow

As @coppelia says, sim.getVisionSensorCharImage should be faster. Here's how to deal with raw data in Python + NumPy + OpenCV: img, resX, resY = sim.getVisionSensorCharImage(visionSensorHandle) img = np.frombuffer(img, dtype=np.uint8).reshape(resY, resX, 3) # In CoppeliaSim images are left to right ...
by fferri
05 Oct 2021, 09:20
Forum: General questions
Topic: Add other constraint in OMPL task solver
Replies: 2
Views: 4015

Re: Add other constraint in OMPL task solver

if I overwrite that, do I need to explicitly call collsiion checking along with constraint checking in this callback function? Yes. The default state validity checking uses sim.checkCollision to determine validity of a state. If a custom state validity checking function is set, the default state va...