-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ongoing fixes to visualize world in RViz
- Loading branch information
1 parent
22d26c4
commit dd6aa2e
Showing
17 changed files
with
214 additions
and
10,300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4,065 changes: 0 additions & 4,065 deletions
4,065
wild_visual_navigation_jackal/Media/models/OliveTree1.dae
This file was deleted.
Oops, something went wrong.
4,263 changes: 0 additions & 4,263 deletions
4,263
wild_visual_navigation_jackal/Media/models/OliveTree2.dae
This file was deleted.
Oops, something went wrong.
1,250 changes: 0 additions & 1,250 deletions
1,250
wild_visual_navigation_jackal/Media/models/PineTree.dae
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
131 changes: 0 additions & 131 deletions
131
wild_visual_navigation_jackal/Media/models/scenario.dae
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-12.9 KB
wild_visual_navigation_jackal/Media/models/textures/Vegetation_Grass1 (copy).jpg
Binary file not shown.
Binary file removed
BIN
-25.5 KB
wild_visual_navigation_jackal/Media/models/textures/Vegetation_Grass1.jpg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
29 changes: 19 additions & 10 deletions
29
wild_visual_navigation_jackal/config/rviz/open_source.rviz
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
wild_visual_navigation_jackal/scripts/gazebo_world_publisher.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/usr/bin/python3 | ||
# | ||
# Copyright (c) 2022-2024, ETH Zurich, Matias Mattamala, Jonas Frey. | ||
# All rights reserved. Licensed under the MIT license. | ||
# See LICENSE file in the project root for details. | ||
# | ||
|
||
from visualization_msgs.msg import Marker | ||
import rospkg | ||
import rospy | ||
|
||
|
||
def callback(event): | ||
pub.publish(marker) | ||
|
||
|
||
if __name__ == "__main__": | ||
rospy.init_node("gazebo_world_publisher") | ||
|
||
# Default variables | ||
rospack = rospkg.RosPack() | ||
pkg_path = rospack.get_path("wild_visual_navigation_jackal") | ||
default_model_file = f"{pkg_path}/Media/models/outdoor.dae" | ||
|
||
marker = Marker() | ||
marker.header.frame_id = "odom" | ||
marker.header.stamp = rospy.Time.now() | ||
marker.id = 0 | ||
marker.ns = "world" | ||
marker.action = Marker.ADD | ||
marker.scale.x = 1.0 | ||
marker.scale.y = 1.0 | ||
marker.scale.z = 1.0 | ||
marker.color.a = 1.0 | ||
marker.pose.orientation.w = 1.0 | ||
marker.mesh_use_embedded_materials = True | ||
marker.type = Marker.MESH_RESOURCE | ||
marker.mesh_resource = f"file://{default_model_file}" | ||
|
||
# Set publisher | ||
pub = rospy.Publisher("/wild_visual_navigation_jackal/simulation_world", Marker, queue_size=10) | ||
|
||
# Set timer to publish | ||
rospy.Timer(rospy.Duration(5), callback) | ||
rospy.loginfo("[gazebo_world_publisher] Published world!") | ||
rospy.spin() |
Oops, something went wrong.