2020-04-17 00:27:39 -0500 | received badge | ● Famous Question
(source)
|
2019-06-26 04:31:03 -0500 | received badge | ● Famous Question
(source)
|
2019-06-17 12:02:16 -0500 | commented answer | Cannot install packages (trying to resolve: could not find pkg cfg file provided by X) I tried what @Geoff said and it worked! I updated my keys and used sudo apt-get update.
The problem with #q252478 workf |
2019-06-17 12:01:59 -0500 | marked best answer | Cannot install packages (trying to resolve: could not find pkg cfg file provided by X) Hello,
I am runnig ROS kinetic on an Uuntu 16.04 and I downloaded a repository from github and pasted it into the src directory of my catkin_ws, but whenever I run "catkin_make" I always get this error: -- Could not find the required component 'controller_manager'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by
"controller_manager" with any of the following names:
controller_managerConfig.cmake
controller_manager-config.cmake
Add the installation prefix of "controller_manager" to CMAKE_PREFIX_PATH or
set "controller_manager_DIR" to a directory containing one of the above
files. If "controller_manager" provides a separate development package or
SDK, be sure it has been installed.
I tried downloading the controller_manager package by downloading ros_control with the following command from ros.org: sudo apt-get install ros-kinetic-ros-control ros-kinetic-ros-controllers
However, when I try this command, I'm getting these errors: Err:1 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-hardware-interface amd64 0.13.3-0xenial-20190320-132757-0800
404 Not Found [IP: 64.50.236.52 80]
Err:2 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-controller-interface amd64 0.13.3-0xenial-20190320-133652-0800
404 Not Found [IP: 64.50.236.52 80]
Err:3 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-realtime-tools amd64 1.11.1-0xenial-20190320-130942-0800
404 Not Found [IP: 64.50.236.52 80]
Err:4 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-diff-drive-controller amd64 0.13.5-0xenial-20190320-171041-0800
404 Not Found [IP: 64.50.236.52 80]
Err:5 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-ackermann-steering-controller amd64 0.13.5-0xenial-20190320-175427-0800
404 Not Found [IP: 64.50.236.52 80]
Err:6 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-combined-robot-hw amd64 0.13.3-0xenial-20190320-133622-0800
404 Not Found [IP: 64.50.236.52 80]
Err:7 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-controller-manager-msgs amd64 0.13.3-0xenial-20180824-100448-0800
404 Not Found [IP: 64.50.236.52 80]
Err:8 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-controller-manager amd64 0.13.3-0xenial-20190320-134400-0800
404 Not Found [IP: 64.50.236.52 80]
Err:9 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-controller-manager-tests amd64 0.13.3-0xenial-20190320-153143-0800
404 Not Found [IP: 64.50.236.52 80]
Err:10 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-combined-robot-hw-tests amd64 0.13.3-0xenial-20190320-154237-0800
404 Not Found [IP: 64.50.236.52 80]
Err:11 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-control-toolbox amd64 1.17.0-0xenial-20190320-143943-0800
404 Not Found [IP: 64.50.236.52 80]
Err:12 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-forward-command-controller amd64 0.13.5-0xenial-20190320-140150-0800
404 Not Found [IP: 64.50.236.52 80]
Err:13 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-effort-controllers amd64 0.13.5-0xenial-20190320-144804-0800
404 Not Found [IP: 64.50.236.52 80]
Err:14 http ... (more) |
2019-06-17 12:01:54 -0500 | commented answer | Cannot install packages (trying to resolve: could not find pkg cfg file provided by X) I tried what @Geoff said and it worked. I updated my keys and used sudo apt-get update.
The problem with #q252478 workf |
2019-06-16 18:02:57 -0500 | received badge | ● Notable Question
(source)
|
2019-06-14 10:51:29 -0500 | received badge | ● Popular Question
(source)
|
2019-06-13 15:28:53 -0500 | edited question | Cannot install packages (trying to resolve: could not find pkg cfg file provided by X) Could not find a package configuration file provided by "controller_manager" with any of the following names:
Hello,
|
2019-06-13 15:27:50 -0500 | asked a question | Cannot install packages (trying to resolve: could not find pkg cfg file provided by X) Could not find a package configuration file provided by "controller_manager" with any of the following names:
Hello,
|
2019-06-07 13:47:25 -0500 | asked a question | ERROR: cannot launch node of type [turtlsim_cleaner/definegoal.py]: turtlsim_cleaner ERROR: cannot launch node of type [turtlsim_cleaner/definegoal.py]: turtlsim_cleaner
Hello,
I'm new to ROS and Iḿ trying |
2019-05-22 22:31:59 -0500 | received badge | ● Notable Question
(source)
|
2019-05-22 10:43:48 -0500 | marked best answer | [Solved] Error when subscribing to multiple topics in python Hello,
I'm new to ROS and I'm having a problem when I try to move my turtle to a goal that I'm publishing.
I created a node that subscribes to 2 topics: the position of the turtle and the goal_position. The goal_position topic is being published in the terminal. The node also publishes the velocity of the turtle.
The purpose of this node is that when the turtle arrives at the goal position, it will then go to the following goal.
I tried to this code in python without using class in the following code, however I received the error: NameError: global name 'goal_pose' is not defined
NameError: global name 'pose' is not defined
What I don't understand is that I've defined them both. #!/usr/bin/env python
import rospy
from geometry_msgs.msg import Twist
from turtlesim.msg import Pose
from math import po`enter code here`w, atan2, sqrt
import angles, math
goal = False
def update_pose(data):
global pose
pose = data
pose.x = round(pose.x, 4)
pose.y = round(pose.y, 4)
def update_goal(data1):
global goal_pose
goal_pose = data1
goal_pose.x = round(goal_pose.x, 4)
goal_pose.y = round(goal_pose.y, 4)
def turtleWalk():
global pose,pub,vel_msg,goal_pose,goal
linear_gain = 4
angular_gain = 12
distance_tolerance = 0.1
vel_msg = Twist()
while not goal:
distance = round(sqrt(pow((goal_pose.x - pose.x), 2) + pow((goal_pose.y - pose.y), 2)), 3)
linear_vel = linear_gain*distance
steering_angle = round(atan2(goal_pose.y - pose.y, goal_pose.x - pose.x),4)
angular_vel = angular_gain*(angles.shortest_angular_distance(pose.theta,steering_angle))
while distance >= distance_tolerance:
vel_msg.linear.x = linear_vel
vel_msg.angular.z = angular_vel
pub.publish(vel_msg)
goal = True
def turtleController():
global pub,vel_msg,goal_pose,pose
rospy.init_node('turtle_controller',anonymous=True)
pub = rospy.Publisher('/turtle1/cmd_vel',Twist,queue_size=10)
rospy.Subscriber('/turtle1/pose',Pose,update_pose)
rospy.Subscriber('/goal',Pose,update_goal)
rate = rospy.Rate(10)
while not rospy.is_shutdown():
turtleWalk()
rate.sleep()
vel_msg.linear.x = 0
vel_msg.angular.z = 0
pub.publish(vel_msg)
if __name__ == '__main__':
try:
turtleController()
except rospy.ROSInterruptException:
pass
The error happens in line 31 which is : distance = round(sqrt(pow((goal_pose.x - pose.x), 2) + pow((goal_pose.y - pose.y), 2)), 3)
|
2019-05-22 10:43:48 -0500 | received badge | ● Scholar
(source)
|
2019-05-22 00:46:06 -0500 | received badge | ● Popular Question
(source)
|
2019-05-21 14:08:44 -0500 | edited question | [Solved] Error when subscribing to multiple topics in python Error when subscribing to multiple topics in python
Hello,
I'm new to ROS and I'm having a problem when I try to move my |
2019-05-21 14:08:44 -0500 | received badge | ● Editor
(source)
|
2019-05-21 14:08:02 -0500 | commented question | [Solved] Error when subscribing to multiple topics in python Thanks!! I put rospy.sleep(10.) and it worked!
|
2019-05-21 13:15:37 -0500 | edited question | [Solved] Error when subscribing to multiple topics in python Error when subscribing to multiple topics in python
Hello,
I'm new to ROS and I'm having a problem when I try to move my |
2019-05-21 12:46:20 -0500 | asked a question | [Solved] Error when subscribing to multiple topics in python Error when subscribing to multiple topics in python
Hello,
I'm new to ROS and I'm having a problem when I try to move my |