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

How about a template without Docker #21

Closed
RaviBeagle opened this issue May 7, 2022 · 3 comments
Closed

How about a template without Docker #21

RaviBeagle opened this issue May 7, 2022 · 3 comments

Comments

@RaviBeagle
Copy link

How can I use this template without Docker ? Would be nice to have one such

Thanks
Ravishankar

@athackst
Copy link
Owner

athackst commented May 7, 2022

You should be able to use it without opening the container. The only delta I can think of is the environment variables - meaning you may need to source your ROS install.

What errors are you running into?

@RaviBeagle
Copy link
Author

I think there would be no errors if I used the package as it is.

I am using ROS2 galactic on WSL2. I did a few adaptations:

  1. Removed .devcontainer, .git and .github folders

  2. Changing foxy to galactic in .vscode JSON files

  3. Added --merge-install option to clean task otherwise there is an error like this:
    [0.201s] ERROR:colcon:colcon build: The install directory 'install' was created with the layout 'merged'. Please remove the install directory, pick a different one or add the '--merge-install' option.

  4. Edited package CMakeLists.txt file to build the node
    find_package(rclcpp REQUIRED)
    add_executable(helloworld_node src/helloworld_node.cpp)
    ament_target_dependencies(helloworld_node rclcpp)
    install(TARGETS
    helloworld_node
    DESTINATION lib/${PROJECT_NAME})

I

@athackst
Copy link
Owner

So sounds like it works as intended then

Pro tip: there's a branch for each release. If you want something other than the latest LTS you need to select "include all branches" when you create a repo from the template to get them

galactic: https://github.com/athackst/vscode_ros2_workspace/tree/galactic

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

No branches or pull requests

2 participants