Skip to content

Commit

Permalink
Fixed python interpretor not loaded for odometry nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Apr 29, 2024
1 parent 4fa32b8 commit f07e4f0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rtabmap_odom/src/RGBDICPOdometryNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "nodelet/loader.h"
#include <rtabmap/utilite/ULogger.h>
#include <rtabmap/core/Parameters.h>
#ifdef RTABMAP_PYTHON
#include <rtabmap/core/PythonInterface.h>
#endif

int main(int argc, char **argv)
{
Expand Down Expand Up @@ -69,6 +72,10 @@ int main(int argc, char **argv)
nargv.push_back(argv[i]);
}

#ifdef RTABMAP_PYTHON
rtabmap::PythonInterface pythonInterface;
#endif

nodelet::Loader nodelet;
nodelet::M_string remap(ros::names::getRemappings());
std::string nodelet_name = ros::this_node::getName();
Expand Down
7 changes: 7 additions & 0 deletions rtabmap_odom/src/RGBDOdometryNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "nodelet/loader.h"
#include <rtabmap/utilite/ULogger.h>
#include <rtabmap/core/Parameters.h>
#ifdef RTABMAP_PYTHON
#include <rtabmap/core/PythonInterface.h>
#endif

int main(int argc, char **argv)
{
Expand Down Expand Up @@ -69,6 +72,10 @@ int main(int argc, char **argv)
nargv.push_back(argv[i]);
}

#ifdef RTABMAP_PYTHON
rtabmap::PythonInterface pythonInterface;
#endif

nodelet::Loader nodelet;
nodelet::M_string remap(ros::names::getRemappings());
std::string nodelet_name = ros::this_node::getName();
Expand Down
7 changes: 7 additions & 0 deletions rtabmap_odom/src/StereoOdometryNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "nodelet/loader.h"
#include <rtabmap/utilite/ULogger.h>
#include <rtabmap/core/Parameters.h>
#ifdef RTABMAP_PYTHON
#include <rtabmap/core/PythonInterface.h>
#endif

int main(int argc, char **argv)
{
Expand Down Expand Up @@ -70,6 +73,10 @@ int main(int argc, char **argv)

}

#ifdef RTABMAP_PYTHON
rtabmap::PythonInterface pythonInterface;
#endif

nodelet::Loader nodelet;
nodelet::M_string remap(ros::names::getRemappings());
std::string nodelet_name = ros::this_node::getName();
Expand Down

0 comments on commit f07e4f0

Please sign in to comment.