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

Fix/new prefix #8

Open
wants to merge 2 commits into
base: noetic-devel
Choose a base branch
from
Open

Fix/new prefix #8

wants to merge 2 commits into from

Conversation

Guillaumebeuzeboc
Copy link
Collaborator

@Guillaumebeuzeboc Guillaumebeuzeboc commented Jun 19, 2023

Thanks to new snapcraft stable version, we can now directly use the roslaunch/rosrun prefix

Tested with the simulation

@@ -7,5 +7,5 @@ TURTLEBOT3_MODEL="$(snapctl get turtlebot3-model)"
export LDS_MODEL
export TURTLEBOT3_MODEL

${SNAP}/opt/ros/noetic/bin/roslaunch turtlebot3c_bringup turtlebot3c_bringup.launch simulation:=$SIMULATION
${SNAP}/roslaunch turtlebot3c_bringup turtlebot3c_bringup.launch simulation:=$SIMULATION
Copy link
Collaborator

Choose a reason for hiding this comment

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

You shouldn't even need the $SNAP/ prefix in these script.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So I tested since I thought I remembered something weird, and indeed there is something. While here in the core_launcher.sh I could remove the $SNAP it's not the case of all the scripts. The scripts mux_select_* in the command chain, when I remove the $SNAP prefix I get:

/snap/turtlebot3c/x2/usr/bin/mux_select_key_vel.sh: line 2: opt/ros/noetic/bin/rosservice: No s
uch file or directory

I am not sure if this is a bug. I am concerned that it might be confusing for users. I would prefer to keep the "$SNAP" in anything that is outside the snapcraft.yaml before we know more if it's a bug or not.

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.

2 participants