tork-a / rtmros_nextage

ROS-OpenRTM-based opensource robot controller software for dual-armed robot Nextage from Kawada Industries
http://wiki.ros.org/rtmros_nextage
27 stars 39 forks source link

[nextage_gazebo] World is very dark on melodic #370

Open pazeshun opened 4 years ago

pazeshun commented 4 years ago

On melodic:

$ roslaunch nextage_gazebo nextage_world.launch

Screenshot from 2020-04-17 18-48-43

On kinetic:

$ roslaunch nextage_gazebo nextage_world.launch

Screenshot from 2020-04-17 18-48-06

pazeshun commented 4 years ago

When I added many lights: Screenshot from 2020-04-17 18-58-19

k-okada commented 4 years ago

yeah, the world is dark, but the object looks good, and the PointClouds seems ok

I first thought this is because I prefer super heavy "mobile workstation" (with GPU) and @pazeshun likes thin and light laptop (without GPU?)... Partially it is true. The robot itself seems dark on my GPU machine and bright on T480s. And we do not have shadows on T480s, But the color of objects in Gazebo and PointClouds seems ok and both machines run at ~60Hz.

T480s (see glx log https://gist.github.com/k-okada/ff01c0a2755e5d35e21612c571c283a4 ) Screenshot from 2020-04-17 20-07-48

P52s Screenshot from 2020-04-17 19-41-07

k-okada commented 4 years ago

And it is always better to check if the robot has collade file. It is very hard to write a program that correctly interprets the model file, because the collad file is so flexible that there are many way of describing the model. So if we convert the .dae to .stl , we will get something like this;

T480s: Screenshot from 2020-04-17 19-59-02

Please use this script to reproduce this https://gist.github.com/k-okada/057f391d7fcab4a0ebb1bd3a182f839f

pazeshun commented 4 years ago

I confirmed your tutorial works and color of object can be acuquired from point cloud (I also tried blue box and red box, there seemed no problem). However, I think light issue should be fixed, because Nextage itself seems black even in RGB image. Screenshot from 2020-04-17 20-25-32

k-okada commented 4 years ago

I see ,from https://bitbucket.org/osrf/gazebo/issues/2623/no-shadows-and-sun-light-with-non-nvidia, what we can do is to disable shadows ...

see https://github.com/k-okada/rtmros_tutorials/commits/disable_shadow for 'sample.world' settings for disabling shadows.

Screenshot from 2020-04-17 20-45-04

pazeshun commented 4 years ago

Wow, https://github.com/k-okada/rtmros_tutorials/commit/659d630a27d34230ea3aa906d0297e3d57140bec makes the dawn!!! Screenshot from 2020-04-17 23-00-50 My PC is T460s including NVIDIA GPU, but I don't activate it.

the-raspberry-pi-guy commented 4 years ago

Hi! Working on something similar here - how did you get the Nextage Open model in melodic? All of the docs point towards older versions of ROS and I am struggling here! Any advice appreciated (relatively new user here) :)

pazeshun commented 4 years ago

@the-raspberry-pi-guy Sorry for late, and I feel you can work Nextage now according to #373 . But I'm writing information just in case.

Now our rtmros base software is released on ROS testing repository. If you already use that repository, what you should have to build from source is rtmros_hironx and rtmros_nextage. All other dependencies should be installed via rosdep install to those repositories. Currently, #365 is required to build rtmros_nextage on melodic. If you don't want to use ROS testing repository and cannot wait about two weeks (delay to find mistakes), you have to build hrpsys, rtmros_common, rtmros_hironx, and rtmros_nextage at least.

the-raspberry-pi-guy commented 4 years ago

Hi @pazeshun, thanks for your response :) I did indeed manage to get the Nextage Open model to load in Gazebo - thank you for your advice with this.

Do you have any advice for issue #373? The model seems to be not calibrated properly - I am getting a lot of vibration when trying out movements.