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

error: ‘traj_point_active_ptr_’ was not declared in this scope #1

Open
xjtu19 opened this issue Dec 16, 2024 · 1 comment
Open

Comments

@xjtu19
Copy link

xjtu19 commented Dec 16, 2024

/home/xj/ur_ws/src/Universal_Robots_ROS2_Driver/ur_controllers/src/scaled_joint_trajectory_controller.cpp: In member function ‘virtual controller_interface::return_type ur_controllers::ScaledJointTrajectoryController::update(const rclcpp::Time&, const rclcpp::Duration&)’:
/home/xj/ur_ws/src/Universal_Robots_ROS2_Driver/ur_controllers/src/scaled_joint_trajectory_controller.cpp:148:7: error: ‘traj_point_active_ptr_’ was not declared in this scope
148 | if (traj_point_active_ptr_ && (*traj_point_active_ptr_)->has_trajectory_msg()) {
| ^~~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/ur_controllers.dir/build.make:76: CMakeFiles/ur_controllers.dir/src/scaled_joint_trajectory_controller.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/ur_controllers.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
Failed <<< ur_controllers [8.91s, exited with code 2]

74d792d69dc392b679805c14d10454b

@Hydran00
Copy link
Owner

Hydran00 commented Dec 17, 2024

Hi @xjtu19, this project is currently not maintained, however I think your error could be solved by using the last binaries insted of the source packages in my repo.
Try this:

rm -rf Universal_Robots-*  ur_*  # remove the UR source package
sudo apt-get install ros-humble-ur* # install latest binary of universal robots

You should probably do the same also for ros2_control

rm -rf ros_control*  # remove ros2 control source package
sudo apt-get install ros-humble-ros2-control # install latest binary of ros2 control

If you have problems with gazebo do the same by using the latest source package (I did not find the binary installable with apt)

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