-
Notifications
You must be signed in to change notification settings - Fork 774
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
[Gazebo 9] Created a MarkerArray to publish normals in ROS #1047
[Gazebo 9] Created a MarkerArray to publish normals in ROS #1047
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't looked into why, but when I rosrun
the commands on the PR description, Gazebo just hangs with a black screen. Can you reproduce it? If you can't, I can dig into my setup later. The worlds/depth_camera2.world
world doesn't hang though.
You should run the example with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me. Since @iche033 is also reviewing, let's wait for his approval before merging.
Actually, I just realized that this change will make this branch not compilable against earlier Gazebo 9 versions. @j-rivero , what's the minimum Gazebo 9 version that we need to support for Noetic? I imagine that's 9.12.0, which is going into Focal? In that case, we may need to wrap the new APIs with |
See comment about sompiling against 9.12.0
m.pose.orientation.w = q.w(); | ||
|
||
// plotting some of the normals, otherwise rviz will block it | ||
if (index % this->reduce_normals_ == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this check earlier? We could skip creating the marker msg and doing computations when the results are not being published.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry didn't catch this earlier: index
is declared later so it is not resolved here and this if
block is missing curly brackects
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had this resolved in this other PR, but I can create a Pr just solving this issue
looks good to me! just left one minor comment. |
Signed-off-by: ahcorde <ahcorde@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compiling against 9.12.0
I talked to @j-rivero about this and since the official Gazebo version for Noetic is not decided yet, let's not worry about it now. We can go back and fix it if needed.
…ation#1047) * created a MarkerArray to publish normals in ROS * Added visualization msgs dependencie depthcamerasensor * Added feedback * populate point cloud when normals is activated * argument to reduce the amount of normals to publish * reduced computation in normals publisher Signed-off-by: ahcorde <ahcorde@gmail.com>
Moved this PR #1038 to
noetic-devel
to avoid ABI changes inmelodic
We are exposing normals in Gazebo9. This PR exposes the normals as a MarkerArray and then we can visualize the normals in RVIZ
Steps to reproduce it:
rosrun gazebo_ros gazebo test_worlds/gazebo_ros_depth_camera.world
rosrun tf2_ros static_transform_publisher 0 0 5 0 0 -1.57 world base_link