[Garden] Port WAMV-V xacro files and generation script#526
Conversation
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
caguero
left a comment
There was a problem hiding this comment.
Reminder: we need to add ros-humble-xacro to the list of packages to install in the instructions.
caguero
left a comment
There was a problem hiding this comment.
I'm getting an error trying to compile:
--- stderr: wamv_gazebo
CMake Warning at /opt/ros/humble/share/xacro/cmake/xacro-extras.cmake:74 (message):
failed to determine deps for: urdf/wamv_gazebo.urdf.xacro
error: package not found: "package 'wamv_gazebo' not found, searching:
['/home/caguero/vrx2023_ws/install', '/opt/ros/humble']"
when processing file: urdf/wamv_gazebo.urdf.xacro
Call Stack (most recent call first):
/opt/ros/humble/share/xacro/cmake/xacro-extras.cmake:133 (xacro_add_xacro_file)
CMakeLists.txt:9 (xacro_add_files)
package not found: "package 'wamv_gazebo' not found, searching: ['/home/caguero/vrx2023_ws/install', '/opt/ros/humble']"
Signed-off-by: Ian Chen <ichen@openrobotics.org>
I commented out the offending line in cmake that runs xacro. I think we may not need it. It should build now. |
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
|
removed rviz config and launch files in 00e836a as they do not work yet. |
Signed-off-by: Ian Chen <ichen@openrobotics.org>
caguero
left a comment
There was a problem hiding this comment.
Should we add the
<plugin
filename="gz-sim-navsat-system"
name="gz::sim::systems::NavSat">
</plugin>
to the recently merged wildlife_task.sdf world?
caguero
left a comment
There was a problem hiding this comment.
All my tests work as expected. The only remaining question is whether launching the world without the urdf option should load the default WAM-V with sensors. That was the expected behavior in Gazebo classic.
Signed-off-by: Ian Chen <ichen@openrobotics.org>
yep, added in c370dd9
that's the imu visual. I noticed that it's white in gazebo-classic but it should've been red though as that's what's specified in urdf. I can change to white to make it consistent?
I can also make the behavior consistent with gazebo-classic |
Signed-off-by: Ian Chen <ichen@openrobotics.org>
I looked at a few launch files in We can def change the default values or even exposed them as launch args if it's helpful |
* port ball shooter plugin Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
* add placard plugin Signed-off-by: Ian Chen <ichen@openrobotics.org>
caguero
left a comment
There was a problem hiding this comment.
I think something isn't right because the RTF drops a lot in this branch (~5%).
|
hmm I what world / configure are you using? I tested with different worlds and default wamv configurations and I'm seeing around 5x% RTF. |
I can confirm it oscillates between 50% and 80% most of the time. I think I wasn't trying with a good Nvidia setup last week. We discussed today trying to reduce the resolution of the camera / velodine to recover the real-time behavior until we improve performance but we could tackle it in a separate PR. |
|
I just remember that another potential perf improvement is to enable lazy subscription on the bridge, e.g. add the following https://github.com/osrf/vrx/blob/gazebosim/vrx_gz/src/vrx_gz/launch.py#L128 |
* [Garden] Porting generate_wamv script * [Garden] Port ball shooter plugin * [Garden] Port Placard plugin (osrf#532) Signed-off-by: Ian Chen <ichen@openrobotics.org> Co-authored-by: Carlos Agüero <caguero@openrobotics.org>

vrx_urdfdirectory that consists of these packages:wamv_description- Ported frommainand updated xacro files to to use new gazebo systemswamv_gazebo- Ported frommainand updated xacro files (incl.componentsandthruster_layout) to use new gazebo systems and sensorsvrx_gazebo- ported the wam-v generation python and launch scripts to ROS2vrx_gzto support loading a urdf file of the wam-vurdfarg tocompetition.launch.pypython-sdformatis used to parse the generated sdf string in order to determine what sensors are attached to the wam-v and then launch the corresponding bridges. Note if you built sdformat from source, you will need to set thePYTHONPATH. See test instructions below.To test:
Run the
generate_wamvscript to generate a urdf file from the provided example configuration yaml files.This should output a
wamv_target.urdfin your current working directory.Run the simulator with the generated wamv file
a. If you installed sdformat from source, you will need to export your
PYTHONPATHb. Launch sim
If
ground_truth_enabledis set totrue, there will be an extra/wamv/sensors/position/ground_truth_odometrytopicThings to note:
hector_gazebo_ros_imuplugin in the new Gazebo. I used an imu sensor with parameters from mbzirc / subthector_gazebo_ros_gpsplugin in the new Gazebo. Thenavsatsensor is used instead.gazebo_ros_p3dplugin in the new Gazebo. Theodometry-publishersystem is used instead.xu,xuuparams for computing the max total thrust.pingerandball shooterplugins are commented out as they have not been ported yet