Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nextage_gazebo] World is very dark on melodic #370

Open
pazeshun opened this issue Apr 17, 2020 · 9 comments
Open

[nextage_gazebo] World is very dark on melodic #370

pazeshun opened this issue Apr 17, 2020 · 9 comments

Comments

@pazeshun
Copy link
Contributor

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
Copy link
Contributor Author

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

@k-okada
Copy link
Member

k-okada commented Apr 17, 2020

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
Copy link
Member

k-okada commented Apr 17, 2020

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
Copy link
Contributor Author

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
Copy link
Member

k-okada commented Apr 17, 2020

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
Copy link
Contributor Author

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

pazeshun added a commit to pazeshun/rtmros_nextage that referenced this issue Apr 17, 2020
Without activating NVIDIA GPU, world is very dark, so disable shadow to make world bright
See tork-a#370
See https://bitbucket.org/osrf/gazebo/issues/2623/no-shadows-and-sun-light-with-non-nvidia
pazeshun added a commit to pazeshun/rtmros_nextage that referenced this issue Apr 17, 2020
Without activating NVIDIA GPU, world is very dark on gazebo 9 (ROS melodic), so disable shadow to make world bright
See tork-a#370
See https://bitbucket.org/osrf/gazebo/issues/2623/no-shadows-and-sun-light-with-non-nvidia
@the-raspberry-pi-guy
Copy link

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
Copy link
Contributor Author

@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
Copy link

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.

k-okada pushed a commit to pazeshun/rtmros_nextage that referenced this issue May 1, 2020
Without activating NVIDIA GPU, world is very dark on gazebo 9 (ROS melodic), so disable shadow to make world bright
See tork-a#370
See https://bitbucket.org/osrf/gazebo/issues/2623/no-shadows-and-sun-light-with-non-nvidia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants