Open tmayoff opened 9 months ago
Add moveit-ros-planning
package to your buildInputs
It's already there
It's already there
I'm sorry, I hadn't noticed. Then try to encapsulate your packages inside a buildEnv
statement, like so:
buildInputs = with pkgs; with pkgs.rosPackages.humble; [
(buildEnv {
paths = [
# packages
# ...
];
})
]
Still not working
{
description = "Testing ROS on NixOS";
nixConfig = {
substituters = [
"https://nix-community.cachix.org"
"https://cache.nixos.org/"
"https://ros.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"ros.cachix.org-1:dSyZxI8geDCJrwgvCOHDoAfOm5sV1wCPjBkKL+38Rvo="
];
};
inputs = {
flake-utils.url = "github:numtide/flake-utils";
ros-flake.url = "github:lopsided98/nix-ros-overlay";
};
outputs = { self, nixpkgs, flake-utils, ros-flake }:
# flake-utils.lib.eachDefaultSystem (system:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ros-flake.overlays.default (import ./replace-ompl.nix)];
};
in
{
devShells.x86_64-linux.default = pkgs.mkShell {
name = "ros devenv";
buildInputs = with pkgs; with pkgs.rosPackages.humble; [
(buildEnv {
paths = [
pkg-config
cairo
eigen
pcl
pcl-conversions
ament-cmake-core
ros-core
ros2run
ros2launch
rmw-cyclonedds-cpp
xacro
joint-state-publisher
rqt-tf-tree
# rtabmap-ros
# navigation2
# nav2-bringup
ros2-control
ros2-controllers
teleop-twist-keyboard
joint-state-publisher-gui
rqt-robot-steering
rqt-joint-trajectory-controller
# Gazebo
# gz-fortress
# ros-gz-bridge
gazebo-ros
# Image Pipeline
image-pipeline
# MoveIt
pluginlib
graph-msgs
moveit-core
moveit-ros-planning
moveit-planners-ompl
moveit-planners-chomp
moveit-visual-tools
moveit-ros-planning-interface
# moveit
];
})
];
RMW_IMPLEMENTATION = "rmw_cyclonedds_cpp";
};
};
# );
}
We also had some issues on building moveit here https://github.com/lopsided98/nix-ros-overlay/issues/244 Now we have a working devshell via flake with some overrides https://gitlab.com/robossembler/nix-robossembler-overlay/-/blob/master/flake.nix?ref_type=heads#L39
Maybe it can helps.
That seems to have been it, thanks!
@lopsided98 i think we could close that
This is the error
This is my flake.
Any help is appreciated.