Skip to content

[Garden] Port Placard plugin#532

Merged
caguero merged 4 commits into
iche033/wamv_configfrom
iche033/placard
Nov 2, 2022
Merged

[Garden] Port Placard plugin#532
caguero merged 4 commits into
iche033/wamv_configfrom
iche033/placard

Conversation

@iche033
Copy link
Copy Markdown
Collaborator

@iche033 iche033 commented Oct 14, 2022

Signed-off-by: Ian Chen ichen@openrobotics.org

Ported the PlacardPlugin from master branch. I added a scan_dock_deliver_task.sdf world for testing. Note that this is not the full task world as it's still missing other models and plugins like light buoy plugin and scan docker deliver scoring plugin. The new world just has the 2022 dock and placard models for testing.

To test:

  1. launch the scan_dock_deliver_task world
ros2 launch vrx_gz competition.launch.py world:=scan_dock_deliver_task
  1. try shuffling the placards, e.g.
gz topic -e -t /vrx/dock_2022_placard1/shuffle -m gz.msgs.Empty -p "unused: true"
gz topic -e -t /vrx/dock_2022_placard2/shuffle -m gz.msgs.Empty -p "unused: true"
gz topic -e -t /vrx/dock_2022_placard3/shuffle -m gz.msgs.Empty -p "unused: true"
  1. try changing the symbol directly, e.g.
gz topic -e -t /vrx/dock_2022_placard1/symbol -m gz.msgs.StringMsg_V -p "data: ['triangle', 'red']"
gz topic -e -t /vrx/dock_2022_placard2/symbol -m gz.msgs.StringMsg_V -p "data: ['cross', 'green']"
gz topic -e -t /vrx/dock_2022_placard3/symbol -m gz.msgs.StringMsg_V -p "data: ['rectangle', 'yellow']"

vrx_placard_plugin

Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
@caguero caguero mentioned this pull request Oct 27, 2022
14 tasks
@M1chaelM M1chaelM self-requested a review October 31, 2022 20:20
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
Copy link
Copy Markdown
Collaborator

@caguero caguero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made some tweaks in d9b5baa.

@M1chaelM
Copy link
Copy Markdown
Collaborator

M1chaelM commented Nov 2, 2022

After building this morning I'm getting:

[ERROR] [launch]: Caught exception in launch (see debug for traceback): Caught exception when trying to load file of format [py]: No module named 'sdformat13'

Am I missing a dependency? I tried the following but it did not resolve the error:

sudo apt install libsdformat13-dev libsdformat13

@caguero
Copy link
Copy Markdown
Collaborator

caguero commented Nov 2, 2022

This looks more like an issue with an SDF Python wrapper. If you compile Gazebo from source you need to set your PYTHONPATH environment variable to <YOUR_GAZEBO_WS>/install/lib/python

@M1chaelM
Copy link
Copy Markdown
Collaborator

M1chaelM commented Nov 2, 2022

Thanks! You were right--this fixed the problem:

export PYTHONPATH=$HOME/gazebo_ws/install/lib/python:$PYTHONPATH

Copy link
Copy Markdown
Collaborator

@M1chaelM M1chaelM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All working as expected. Thanks!

@caguero caguero merged commit 23c134e into iche033/wamv_config Nov 2, 2022
caguero added a commit that referenced this pull request Nov 8, 2022
* [Garden] Porting generate_wamv script
* [Garden] Port ball shooter plugin
* [Garden] Port Placard plugin (#532)

Signed-off-by: Ian Chen <ichen@openrobotics.org>
Co-authored-by: Carlos Agüero <caguero@openrobotics.org>
@caguero caguero deleted the iche033/placard branch January 5, 2023 21:22
exordor pushed a commit to exordor/vrx_tunnel that referenced this pull request Oct 26, 2025
* [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>
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

Successfully merging this pull request may close these issues.

3 participants