Code Monkey home page Code Monkey logo

Comments (13)

misook3 avatar misook3 commented on May 27, 2024 2

I changed the graphic card to rtx 2070 and installed vulkan library.
Now it worked.
rtx2070_vulkan_cloisim

Many thanks.

from cloisim.

zikprid0 avatar zikprid0 commented on May 27, 2024

You can move robot with teleop twist keyboard. with

ros2 run teleop_twist_keyboard teleop_twist_keyboard /cmd_vel:=/cloi/cmd_vel

You need '/cloi' namespace for all topic because we assign namespace each robot.

If you need run navigation2 or cartographor, you need remmapings each topic.

from cloisim.

hyunseok-yang avatar hyunseok-yang commented on May 27, 2024

@misook3
You need to prepare below packages like you mentioned.

  1. CLOiSim
  2. sample-resources
  3. sim-device

You'd better to launch below script after install ROS2(Dashing) and build sim-device.

Here's a guide. Usage

  1. Do setup ROS2 environment like always
    $ . /opt/ros/dashing/setup.bash

  2. Set environment variable with the location of resources where you downloaded
    export CLOISIM_MODEL_PATH="/home/Unity/cloisim/sample-resources/models"
    export CLOISIM_WORLD_PATH="/home/Unity/cloisim/sample-resources/worlds"

  3. Do setup sim-device package after build(colcon build).
    (it's an one of example, please change the path where you extracted.)
    $ ros2 launch simdevice_bringup cloisim_world.launch.py sim_path:=/home/yg/CLOiSimRelease/CLOiSim-1.7.0 world:=lg_seocho.world

refer to this launcher script here

BTW, 'sim-device' stands for 'simulation-device' :).

from cloisim.

misook3 avatar misook3 commented on May 27, 2024

Thank you very much for your inputs.
However I have a problem about launch file format.
How should I go about this?
ros2_error_02

from cloisim.

misook3 avatar misook3 commented on May 27, 2024

I solved this problem :D
At sim-device-dashing, source install/setup.bash did it.
However, my screen does not show any models and worlds...
What did I miss?
ros2_error_03

from cloisim.

hyunseok-yang avatar hyunseok-yang commented on May 27, 2024

It looks CLOiSim has been terminated when you launched.
Are you running those simulation on Docker Container? or Remote environment?

If it so, you need to set configuration for X11-display and nvidia driver setting.

It might be helpful. link

from cloisim.

misook3 avatar misook3 commented on May 27, 2024

Ah, I did not run CLOiSim...
After I added another path into an environment, export CLOISIM_FILES_PATH="/home/ubuntu/sample-resources-0.2.0", I ran CLOiSim, but I could not figure it out where I have to change the path...
Did I add a right path?

ros2_error_05

from cloisim.

hyunseok-yang avatar hyunseok-yang commented on May 27, 2024

Actually "cloisim_world.launch.py" script runs CLOiSim. That's why it needs to add a sim_path as an argument on command.

All you need is just run cloisim_world.launch.py after set ENVIRONMENT variable like below.

ex)
export CLOISIM_WORLD_PATH=/home/ubuntu/sample-resources-0.2.0/worlds/
export CLOISIM_MODEL_PATH=/home/ubuntu/sample-resources-0.2.0/models/

from cloisim.

hyunseok-yang avatar hyunseok-yang commented on May 27, 2024

Ah, I did not run CLOiSim...
After I added another path into an environment, export CLOISIM_FILES_PATH="/home/ubuntu/sample-resources-0.2.0", I ran CLOiSim, but I could not figure it out where I have to change the path...
Did I add a right path?

ros2_error_05

If you cannot see any simulation popup window, I think your display setting is wrong.

Are you working at remote server through SSH?

Please check if display setting is working properly.

Check display
$ sudo apt-get install x11-apps
$ xeyes

And nvidia graphic driver should be installed.

from cloisim.

misook3 avatar misook3 commented on May 27, 2024

Yes! I will check the display setting and try the docker version of CLOiSim.
Many thanks for extra explanations.

from cloisim.

misook3 avatar misook3 commented on May 27, 2024

You were right!
It turns out my graphic card (nvidia gtx 1070) driver is not compatible with released binary CLOiSim.
Only CLOiSim-1.1.0 is runable...
ros2_cloisim_01

If I build the source code of CLOiSim-1.6.0, would it be runable on my notbook?
When I try to open the project of CLOiSim-1.6.0 in Unity Editor, which file should I choose as a solution file(?) in the source code?

Thanks

from cloisim.

hyunseok-yang avatar hyunseok-yang commented on May 27, 2024

@misook3

It looks you are missing prerequisite library.
Usage

sudo apt-get install libvulkan1

Vulkan library is required since version 1.1.1.

from cloisim.

zikprid0 avatar zikprid0 commented on May 27, 2024

@misook3 Good job!

from cloisim.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.