riddhiman13 / predictive-multi-agent-framework

Repository for predictive dual-arm reactive motion planning
BSD 3-Clause "New" or "Revised" License
37 stars 6 forks source link

complie error #2

Closed GithubMingEnter closed 8 hours ago

GithubMingEnter commented 3 weeks ago

when I catkin bulid: it hints :

pmaf_ws/src/predictive-multi-agent-framework/src/moveit/moveit_ros/visualization/rviz_plugin_render_tools/src/trajectory_visualization.cpp:108:72:   required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:314:9: error: static assertion failed: Signal and slot arguments are not compatible.
  314 |         Q_STATIC_ASSERT_X((FunctorArgumentCount >= 0),
GithubMingEnter commented 3 weeks ago

My solution: replace nullptr with an appropriate function or lambda:

auto slot_function = []() {
    // null

  };
  use_sim_time_property_ = new rviz::BoolProperty("Use Sim Time", false,
                                                  "Indicates whether simulation time or wall-time is "
                                                  "used for state display timing.",
                                                  widget, SLOT(slot_function()), this);
riddhiman13 commented 8 hours ago

Thanks for proposing the solution!